We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a01b4cf commit c52d033Copy full SHA for c52d033
compiler/rustc_expand/src/mbe/macro_parser.rs
@@ -651,11 +651,8 @@ fn parse_tt_inner<'root, 'tt>(
651
next_items.push(item);
652
}
653
654
- // There was another token that was not `token`... This means we can't add any
655
- // rules. NOTE that this is not necessarily an error unless _all_ items in
656
- // `cur_items` end up doing this. There may still be some other matchers that do
657
- // end up working out.
658
- TokenTree::Token(..) | TokenTree::MetaVar(..) => {}
+ // These cannot appear in a matcher.
+ TokenTree::Token(..) | TokenTree::MetaVar(..) => unreachable!(),
659
660
661
0 commit comments