File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,9 @@ it calls back to the normal Rust parser to get the contents of that
134
134
non - terminal . In this case , the Rust parser would look for an `ident ` token ,
135
135
which it finds (`foo `) and returns to the macro parser . Then , the macro parser
136
136
proceeds in parsing as normal . Also , note that exactly one of the matchers from
137
- the various arms should match the invocation (otherwise , the macro is
138
- ambiguous ).
137
+ the various arms should match the invocation ; if there is more than one match ,
138
+ the parse is ambiguous , while if there are no matches at all , there is a syntax
139
+ error .
139
140
140
141
For more information about the macro parser 's implementation , see the comments
141
142
in [`src / libsyntax / ext / tt / macro_parser . rs`][code_mp ].
You can’t perform that action at this time.
0 commit comments