Skip to content

Commit d5618e8

Browse files
cjgillotjoshtriplett
authored andcommittedMay 17, 2022
Remove footnote on warning about lifetime shadowing labels.
1 parent 5e614ae commit d5618e8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎src/names/namespaces.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The following is a list of namespaces, with their corresponding entities:
5050
* [Attribute macros]
5151
* Lifetime Namespace
5252
* [Generic lifetime parameters]
53-
* Label Namespace[^rustc-lifetime-shadow]
53+
* Label Namespace
5454
* [Loop labels]
5555

5656
An example of how overlapping names in different namespaces can be used unambiguously:
@@ -115,12 +115,6 @@ For example, the [`cfg` attribute] and the [`cfg` macro] are two different entit
115115

116116
It is still an error for a [`use` import] to shadow another macro, regardless of their sub-namespaces.
117117

118-
[^rustc-lifetime-shadow]: `rustc` currently warns about shadowing when using
119-
the same name for a label and lifetime in the same scope, but it still
120-
treats them independently. This is intended as a future-compatibility
121-
warning about a possible extension to the language. See [PR
122-
#24162](https://github.com/rust-lang/rust/pull/24162).
123-
124118
[`cfg` attribute]: ../conditional-compilation.md#the-cfg-attribute
125119
[`cfg` macro]: ../conditional-compilation.md#the-cfg-macro
126120
[`for`]: ../expressions/loop-expr.md#iterator-loops

0 commit comments

Comments
 (0)
Please sign in to comment.