]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/keywords.md
New upstream version 1.51.0+dfsg1
[rustc.git] / src / doc / reference / src / keywords.md
index a0dc33dfa3599803fd9060bea954f955dab99082..e303b449e37a710338f4674b0f3e9c08731f50c9 100644 (file)
@@ -60,6 +60,8 @@ be used as the names of:
 The following keywords were added beginning in the 2018 edition.
 
 > **<sup>Lexer 2018+</sup>**\
+> KW_ASYNC          : `async`\
+> KW_AWAIT          : `await`\
 > KW_DYN            : `dyn`
 
 ## Reserved keywords
@@ -86,8 +88,6 @@ them to use these keywords.
 The following keywords are reserved beginning in the 2018 edition.
 
 > **<sup>Lexer 2018+</sup>**\
-> KW_ASYNC : `async`\
-> KW_AWAIT : `await`\
 > KW_TRY   : `try`
 
 ## Weak keywords
@@ -97,8 +97,8 @@ is possible to declare a variable or method with the name `union`.
 
 * `union` is used to declare a [union] and is only a keyword when used in a
   union declaration.
-* `'static` is used for the static lifetime and cannot be used as a generic
-  lifetime parameter
+* `'static` is used for the static lifetime and cannot be used as a [generic
+  lifetime parameter] or [loop label]
 
   ```compile_fail
   // error[E0262]: invalid lifetime parameter name: `'static`
@@ -116,14 +116,16 @@ is possible to declare a variable or method with the name `union`.
 > **<sup>Lexer 2015</sup>**\
 > KW_DYN            : `dyn`
 
-[items]: items.html
-[Variables]: variables.html
-[Type parameters]: types/parameters.html
-[loop labels]: expressions/loop-expr.html#loop-labels
-[Macros]: macros.html
-[attributes]: attributes.html
-[Macro placeholders]: macros-by-example.html
-[Crates]: crates-and-source-files.html
-[union]: items/unions.html
-[variants]: items/enumerations.html
-[`dyn`]: types/trait-object.html
+[items]: items.md
+[Variables]: variables.md
+[Type parameters]: types/parameters.md
+[loop labels]: expressions/loop-expr.md#loop-labels
+[Macros]: macros.md
+[attributes]: attributes.md
+[Macro placeholders]: macros-by-example.md
+[Crates]: crates-and-source-files.md
+[union]: items/unions.md
+[variants]: items/enumerations.md
+[`dyn`]: types/trait-object.md
+[loop label]: expressions/loop-expr.md#loop-labels
+[generic lifetime parameter]: items/generics.md