@@ -81,7 +81,7 @@ iteration, this represents a compile error. Here is the [algorithm][original]:
81
81
3 . If it's resolved:
82
82
0 . Run the macro's expander function that consumes a [ ` TokenStream ` ] or
83
83
AST and produces a [ ` TokenStream ` ] or [ ` AstFragment ` ] (depending on
84
- the macro kind). (A ` TokenStream ` is a collection of [ ` TokenTrees ` ] ,
84
+ the macro kind). (A ` TokenStream ` is a collection of [ ` TokenTree ` s ] [ tt ] ,
85
85
each of which are a token (punctuation, identifier, or literal) or a
86
86
delimited group (anything inside ` () ` /` [] ` /` {} ` )).
87
87
- At this point, we know everything about the macro itself and can
@@ -110,14 +110,14 @@ iteration, this represents a compile error. Here is the [algorithm][original]:
110
110
0 . Put the macro back in the queue
111
111
1 . Continue to next iteration...
112
112
113
- [ defpaths ] : https://rustc-dev-guide.rust-lang.org/hir.html?highlight=def,path#identifiers-in-the-hir
113
+ [ defpath ] : https://rustc-dev-guide.rust-lang.org/hir.html?highlight=def,path#identifiers-in-the-hir
114
114
[ `NodeId` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/node_id/struct.NodeId.html
115
115
[ `InvocationCollector` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_expand/expand/struct.InvocationCollector.html
116
116
[ `DefId` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/def_id/struct.DefId.html
117
117
[ `DefCollector` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/def_collector/struct.DefCollector.html
118
118
[ `BuildReducedGraphVisitor` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_resolve/build_reduced_graph/struct.BuildReducedGraphVisitor.html
119
119
[ hybelow ] : #hygiene-and-heirarchies
120
- [ `TokenTree` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/tokenstream/enum.TokenTree.html
120
+ [ tt ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/tokenstream/enum.TokenTree.html
121
121
[ `TokenStream` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/tokenstream/struct.TokenStream.html
122
122
[ inv ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_expand/expand/struct.Invocation.html
123
123
[ `AstFragment` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_expand/expand/enum.AstFragment.html
0 commit comments