From 388d90ac4cb3f646934e5fa77a1a3182a54e9846 Mon Sep 17 00:00:00 2001 From: HTG-YT Date: Tue, 17 Aug 2021 09:42:23 +0800 Subject: make edition 2021 stable --- compiler/rustc_span/src/edition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_span') diff --git a/compiler/rustc_span/src/edition.rs b/compiler/rustc_span/src/edition.rs index 8544acd6d05..485d7cb0d67 100644 --- a/compiler/rustc_span/src/edition.rs +++ b/compiler/rustc_span/src/edition.rs @@ -66,7 +66,7 @@ impl Edition { match *self { Edition::Edition2015 => true, Edition::Edition2018 => true, - Edition::Edition2021 => false, + Edition::Edition2021 => true, } } } -- cgit 1.4.1-3-g733a5 From 6adbbb6be744a4af51b981826a11ada75b9666a7 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 30 Aug 2021 15:33:09 +0200 Subject: Update LATEST_STABLE_EDITION to 2021. --- compiler/rustc_span/src/edition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_span') diff --git a/compiler/rustc_span/src/edition.rs b/compiler/rustc_span/src/edition.rs index 485d7cb0d67..511c2e86626 100644 --- a/compiler/rustc_span/src/edition.rs +++ b/compiler/rustc_span/src/edition.rs @@ -32,7 +32,7 @@ pub const EDITION_NAME_LIST: &str = "2015|2018|2021"; pub const DEFAULT_EDITION: Edition = Edition::Edition2015; -pub const LATEST_STABLE_EDITION: Edition = Edition::Edition2018; +pub const LATEST_STABLE_EDITION: Edition = Edition::Edition2021; impl fmt::Display for Edition { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { -- cgit 1.4.1-3-g733a5