diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-12-31 19:09:28 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-12-31 19:39:44 +0100 |
| commit | 3cbdbe8dcd6a61154b7b5a74707e9e4274df5ed8 (patch) | |
| tree | 55d823f7860747a01907e0549b3c7274fce50fd4 | |
| parent | 3d9d0e9d3edd6ef767817e5432b6869929ab0058 (diff) | |
| download | rust-3cbdbe8dcd6a61154b7b5a74707e9e4274df5ed8.tar.gz rust-3cbdbe8dcd6a61154b7b5a74707e9e4274df5ed8.zip | |
Enable Pat2021 in edition 2021.
| -rw-r--r-- | compiler/rustc_ast/src/token.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/token.rs b/compiler/rustc_ast/src/token.rs index 6dde304e8cf..b311f9fdcb9 100644 --- a/compiler/rustc_ast/src/token.rs +++ b/compiler/rustc_ast/src/token.rs @@ -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 }, |
