File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 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() {
8686## Meta Item Attribute Syntax
8787
8888A "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:
9190
9291> ** <sup >Syntax</sup >** \
9392> _ MetaItem_ :\
@@ -268,7 +267,6 @@ The following is an index of all built-in attributes.
268267[ `link` ] : items/external-blocks.md#the-link-attribute
269268[ `macro_export` ] : macros-by-example.md#path-based-scope
270269[ `macro_use` ] : macros-by-example.md#the-macro_use-attribute
271- [ `meta` macro fragment specifier ] : macros-by-example.md
272270[ `must_use` ] : attributes/diagnostics.md#the-must_use-attribute
273271[ `no_builtins` ] : attributes/codegen.md#the-no_builtins-attribute
274272[ `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:
128128 * ` ident ` : an [ IDENTIFIER_OR_KEYWORD]
129129 * ` path ` : a [ _ TypePath_ ] style path
130130 * ` 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
132132 * ` lifetime ` : a [ LIFETIME_TOKEN]
133133 * ` vis ` : a possibly empty [ _ Visibility_ ] qualifier
134134 * ` literal ` : matches ` - ` <sup >?</sup >[ _ LiteralExpression_ ]
@@ -477,12 +477,12 @@ For more detail, see the [formal specification].
477477[ LIFETIME_TOKEN ] : tokens.md#lifetimes-and-loop-labels
478478[ Metavariables ] : #metavariables
479479[ Repetitions ] : #repetitions
480+ [ _Attr_ ] : attributes.md
480481[ _BlockExpression_ ] : expressions/block-expr.md
481482[ _DelimTokenTree_ ] : macros.md
482483[ _Expression_ ] : expressions.md
483484[ _Item_ ] : items.md
484485[ _LiteralExpression_ ] : expressions/literal-expr.md
485- [ _MetaItem_ ] : attributes.md#meta-item-attribute-syntax
486486[ _MetaListIdents_ ] : attributes.md#meta-item-attribute-syntax
487487[ _Pattern_ ] : patterns.md
488488[ _Statement_ ] : statements.md
You can’t perform that action at this time.
0 commit comments