Skip to content

Commit 4947f09

Browse files
committed
Stop gating feature "edition2021"
1 parent 74f20d2 commit 4947f09

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,13 @@ impl TomlManifest {
11371137
} else {
11381138
Edition::Edition2015
11391139
};
1140-
if edition == Edition::Edition2021 {
1141-
features.require(Feature::edition2021())?;
1142-
} else if !edition.is_stable() {
1140+
// Add these lines if start a new unstable edition.
1141+
// ```
1142+
// if edition == Edition::Edition20xx {
1143+
// features.require(Feature::edition20xx))?;
1144+
// }
1145+
// ```
1146+
if !edition.is_stable() {
11431147
// Guard in case someone forgets to add .require()
11441148
return Err(util::errors::internal(format!(
11451149
"edition {} should be gated",

0 commit comments

Comments
 (0)