Skip to content

Commit

Permalink
Enable Pat2021 in edition 2021.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Dec 31, 2020
1 parent 3d9d0e9 commit 3cbdbe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_ast/src/token.rs
Expand Up @@ -726,8 +726,7 @@ impl NonterminalKind {
Edition::Edition2015 | Edition::Edition2018 => {
NonterminalKind::Pat2018 { inferred: true }
}
// FIXME(mark-i-m): uncomment when 2021 machinery is available.
//Edition::Edition2021 => NonterminalKind::Pat2021{inferred:true},
Edition::Edition2021 => NonterminalKind::Pat2021 { inferred: true },
},
sym::pat2018 => NonterminalKind::Pat2018 { inferred: false },
sym::pat2021 => NonterminalKind::Pat2021 { inferred: false },
Expand Down

0 comments on commit 3cbdbe8

Please sign in to comment.