@@ -137,22 +137,21 @@ fragment of the kind specified and binds it to the metavariable `$`_name_.
137
137
r[ macro.decl.meta.specifier]
138
138
Valid fragment specifiers are:
139
139
140
- * ` item ` : an [ _ Item_ ]
141
140
* ` block ` : a [ _ BlockExpression_ ]
142
- * ` stmt ` : a [ _ Statement_ ] without the trailing semicolon (except for item
143
- statements that require semicolons)
144
- * ` pat_param ` : a [ _ PatternNoTopAlt_ ]
145
- * ` pat ` : at least any [ _ PatternNoTopAlt_ ] , and possibly more depending on edition
146
141
* ` expr ` : an [ _ Expression_ ] except [ _ UnderscoreExpression_ ] and [ _ ConstBlockExpression_ ] (see [ macro.decl.meta.expr-underscore] )
147
142
* ` expr_2021 ` : same as ` expr ` (see [ macro.decl.meta.edition2021] )
148
- * ` ty ` : a [ _ Type_ ]
149
143
* ` ident ` : an [ IDENTIFIER_OR_KEYWORD] or [ RAW_IDENTIFIER]
144
+ * ` item ` : an [ _ Item_ ]
145
+ * ` lifetime ` : a [ LIFETIME_TOKEN]
146
+ * ` literal ` : matches ` - ` <sup >?</sup >[ _ LiteralExpression_ ]
147
+ * ` meta ` : an [ _ Attr_ ] , the contents of an attribute
148
+ * ` pat ` : at least any [ _ PatternNoTopAlt_ ] , and possibly more depending on edition
149
+ * ` pat_param ` : a [ _ PatternNoTopAlt_ ]
150
150
* ` path ` : a [ _ TypePath_ ] style path
151
+ * ` stmt ` : a [ _ Statement_ ] without the trailing semicolon (except for item statements that require semicolons)
151
152
* ` tt ` : a [ _ TokenTree_ ]   ; (a single [ token] or tokens in matching delimiters ` () ` , ` [] ` , or ` {} ` )
152
- * ` meta ` : an [ _ Attr_ ] , the contents of an attribute
153
- * ` lifetime ` : a [ LIFETIME_TOKEN]
153
+ * ` ty ` : a [ _ Type_ ]
154
154
* ` vis ` : a possibly empty [ _ Visibility_ ] qualifier
155
- * ` literal ` : matches ` - ` <sup >?</sup >[ _ LiteralExpression_ ]
156
155
157
156
r[ macro.decl.meta.transcription]
158
157
In the transcriber, metavariables are referred to simply by ` $ ` _ name_ , since
0 commit comments