We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f20d2 commit 4947f09Copy full SHA for 4947f09
src/cargo/util/toml/mod.rs
@@ -1137,9 +1137,13 @@ impl TomlManifest {
1137
} else {
1138
Edition::Edition2015
1139
};
1140
- if edition == Edition::Edition2021 {
1141
- features.require(Feature::edition2021())?;
1142
- } else if !edition.is_stable() {
+ // Add these lines if start a new unstable edition.
+ // ```
+ // if edition == Edition::Edition20xx {
1143
+ // features.require(Feature::edition20xx))?;
1144
+ // }
1145
1146
+ if !edition.is_stable() {
1147
// Guard in case someone forgets to add .require()
1148
return Err(util::errors::internal(format!(
1149
"edition {} should be gated",
0 commit comments