From 3cbdbe8dcd6a61154b7b5a74707e9e4274df5ed8 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Thu, 31 Dec 2020 19:09:28 +0100 Subject: [PATCH] Enable Pat2021 in edition 2021. --- compiler/rustc_ast/src/token.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_ast/src/token.rs b/compiler/rustc_ast/src/token.rs index 6dde304e8cfe5..b311f9fdcb966 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 },