Skip to content

Commit

Permalink
Enable OrPatNonterminalMode::TopPat in edition 2021.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Dec 24, 2020
1 parent b3428fc commit cfee9fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_expand/src/mbe/macro_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,7 @@ fn token_name_eq(t1: &Token, t2: &Token) -> bool {
fn or_pat_mode(edition: Edition) -> OrPatNonterminalMode {
match edition {
Edition::Edition2015 | Edition::Edition2018 => OrPatNonterminalMode::NoTopAlt,
// FIXME(mark-i-m): uncomment this when edition 2021 machinery is added.
// Edition::Edition2021 => OrPatNonterminalMode::TopPat,
Edition::Edition2021 => OrPatNonterminalMode::TopPat,
}
}

Expand Down

0 comments on commit cfee9fb

Please sign in to comment.