File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -86,8 +86,7 @@ fn some_unused_variables() {
86
86
## Meta Item Attribute Syntax
87
87
88
88
A "meta item" is the syntax used for the _ Attr_ rule by most [ built-in
89
- attributes] and the [ ` meta ` macro fragment specifier] . It has the following
90
- grammar:
89
+ attributes] . It has the following grammar:
91
90
92
91
> ** <sup >Syntax</sup >** \
93
92
> _ MetaItem_ :\
@@ -268,7 +267,6 @@ The following is an index of all built-in attributes.
268
267
[ `link` ] : items/external-blocks.md#the-link-attribute
269
268
[ `macro_export` ] : macros-by-example.md#path-based-scope
270
269
[ `macro_use` ] : macros-by-example.md#the-macro_use-attribute
271
- [ `meta` macro fragment specifier ] : macros-by-example.md
272
270
[ `must_use` ] : attributes/diagnostics.md#the-must_use-attribute
273
271
[ `no_builtins` ] : attributes/codegen.md#the-no_builtins-attribute
274
272
[ `no_implicit_prelude` ] : items/modules.md#prelude-items
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ fragment specifiers are:
128
128
* ` ident ` : an [ IDENTIFIER_OR_KEYWORD]
129
129
* ` path ` : a [ _ TypePath_ ] style path
130
130
* ` tt ` : a [ _ TokenTree_ ]   ; (a single [ token] or tokens in matching delimiters ` () ` , ` [] ` , or ` {} ` )
131
- * ` meta ` : a [ _ MetaItem _ ] , the contents of an attribute
131
+ * ` meta ` : an [ _ Attr _ ] , the contents of an attribute
132
132
* ` lifetime ` : a [ LIFETIME_TOKEN]
133
133
* ` vis ` : a possibly empty [ _ Visibility_ ] qualifier
134
134
* ` literal ` : matches ` - ` <sup >?</sup >[ _ LiteralExpression_ ]
@@ -477,12 +477,12 @@ For more detail, see the [formal specification].
477
477
[ LIFETIME_TOKEN ] : tokens.md#lifetimes-and-loop-labels
478
478
[ Metavariables ] : #metavariables
479
479
[ Repetitions ] : #repetitions
480
+ [ _Attr_ ] : attributes.md
480
481
[ _BlockExpression_ ] : expressions/block-expr.md
481
482
[ _DelimTokenTree_ ] : macros.md
482
483
[ _Expression_ ] : expressions.md
483
484
[ _Item_ ] : items.md
484
485
[ _LiteralExpression_ ] : expressions/literal-expr.md
485
- [ _MetaItem_ ] : attributes.md#meta-item-attribute-syntax
486
486
[ _MetaListIdents_ ] : attributes.md#meta-item-attribute-syntax
487
487
[ _Pattern_ ] : patterns.md
488
488
[ _Statement_ ] : statements.md
You can’t perform that action at this time.
0 commit comments