diff options
| author | Eric Huss <eric@huss.org> | 2023-12-10 09:34:13 -0800 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2023-12-10 13:03:28 -0800 |
| commit | f481596ee4e761182f20eaf1b67d4431cd2d5556 (patch) | |
| tree | fc0ae7b828e7036216820f6426879bef446cc7b0 /compiler/rustc_span/src | |
| parent | 7e452c123c5acea813130a9519b34f83795cb856 (diff) | |
| download | rust-f481596ee4e761182f20eaf1b67d4431cd2d5556.tar.gz rust-f481596ee4e761182f20eaf1b67d4431cd2d5556.zip | |
Remove edition umbrella features.
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/edition.rs | 10 | ||||
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 3 |
2 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_span/src/edition.rs b/compiler/rustc_span/src/edition.rs index 608b8c24bde..78ac61fa31d 100644 --- a/compiler/rustc_span/src/edition.rs +++ b/compiler/rustc_span/src/edition.rs @@ -1,4 +1,3 @@ -use crate::symbol::{sym, Symbol}; use std::fmt; use std::str::FromStr; @@ -58,15 +57,6 @@ impl Edition { } } - pub fn feature_name(self) -> Symbol { - match self { - Edition::Edition2015 => sym::rust_2015_preview, - Edition::Edition2018 => sym::rust_2018_preview, - Edition::Edition2021 => sym::rust_2021_preview, - Edition::Edition2024 => sym::rust_2024_preview, - } - } - pub fn is_stable(self) -> bool { match self { Edition::Edition2015 => true, diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 9ad76b74c38..f3c5138716d 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -1350,13 +1350,10 @@ symbols! { rtm_target_feature, rust, rust_2015, - rust_2015_preview, rust_2018, rust_2018_preview, rust_2021, - rust_2021_preview, rust_2024, - rust_2024_preview, rust_begin_unwind, rust_cold_cc, rust_eh_catch_typeinfo, |
