Skip to content

Commit

Permalink
Remove edition 2027
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhuichen committed Sep 25, 2024
1 parent 0b0dbe8 commit 2078ea8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ fn edition_from_edition_str(edition_str: &str) -> Result<Edition> {
"2018" => Ok(Edition::Edition2018),
"2021" => Ok(Edition::Edition2021),
"2024" => Ok(Edition::Edition2024),
"2027" => Ok(Edition::Edition2027),
_ => Err(format_err!("Invalid value for `--edition`")),
}
}
Expand Down
7 changes: 0 additions & 7 deletions src/config/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -462,8 +458,6 @@ impl From<Edition> 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,
}
}
}
Expand All @@ -475,7 +469,6 @@ impl From<Edition> for StyleEdition {
Edition::Edition2018 => StyleEdition::Edition2018,
Edition::Edition2021 => StyleEdition::Edition2021,
Edition::Edition2024 => StyleEdition::Edition2024,
Edition::Edition2027 => StyleEdition::Edition2027,
}
}
}
Expand Down

0 comments on commit 2078ea8

Please sign in to comment.