Skip to content

Commit 8caabd6

Browse files
committed
Update for "modern" meta matcher.
1 parent 320d232 commit 8caabd6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: src/attributes.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ fn some_unused_variables() {
8686
## Meta Item Attribute Syntax
8787

8888
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:
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

Diff for: src/macros-by-example.md

+2-2
Original file line numberDiff line numberDiff 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_]&nbsp;(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

0 commit comments

Comments
 (0)