diff --git a/src/bin/main.rs b/src/bin/main.rs index 917fc9215dc..fe24276311e 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -760,7 +760,6 @@ fn edition_from_edition_str(edition_str: &str) -> Result { "2018" => Ok(Edition::Edition2018), "2021" => Ok(Edition::Edition2021), "2024" => Ok(Edition::Edition2024), - "2027" => Ok(Edition::Edition2027), _ => Err(format_err!("Invalid value for `--edition`")), } } diff --git a/src/config/options.rs b/src/config/options.rs index 7a5157aa33f..c8ae30fae84 100644 --- a/src/config/options.rs +++ b/src/config/options.rs @@ -443,10 +443,6 @@ pub enum Edition { #[doc_hint = "2024"] /// Edition 2024. Edition2024, - #[value = "2027"] - #[doc_hint = "2027"] - /// Edition 2027. - Edition2027, } impl Default for Edition { @@ -462,8 +458,6 @@ impl From for rustc_span::edition::Edition { Edition::Edition2018 => Self::Edition2018, Edition::Edition2021 => Self::Edition2021, Edition::Edition2024 => Self::Edition2024, - // TODO: update to 2027 after rustc change - Edition::Edition2027 => Self::Edition2024, } } } @@ -475,7 +469,6 @@ impl From for StyleEdition { Edition::Edition2018 => StyleEdition::Edition2018, Edition::Edition2021 => StyleEdition::Edition2021, Edition::Edition2024 => StyleEdition::Edition2024, - Edition::Edition2027 => StyleEdition::Edition2027, } } }