Skip to content

Commit cfee9fb

Browse files
committed
Enable OrPatNonterminalMode::TopPat in edition 2021.
1 parent b3428fc commit cfee9fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_expand/src/mbe/macro_parser.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,7 @@ fn token_name_eq(t1: &Token, t2: &Token) -> bool {
421421
fn or_pat_mode(edition: Edition) -> OrPatNonterminalMode {
422422
match edition {
423423
Edition::Edition2015 | Edition::Edition2018 => OrPatNonterminalMode::NoTopAlt,
424-
// FIXME(mark-i-m): uncomment this when edition 2021 machinery is added.
425-
// Edition::Edition2021 => OrPatNonterminalMode::TopPat,
424+
Edition::Edition2021 => OrPatNonterminalMode::TopPat,
426425
}
427426
}
428427

0 commit comments

Comments
 (0)