Skip to content

Commit 8dbd4df

Browse files
authored
Merge pull request rust-lang#403 from integer32llc/edition-feature-stable
The Cargo "edition" feature is now stable
2 parents 499812e + e0e69c7 commit 8dbd4df

File tree

3 files changed

+21
-24
lines changed

3 files changed

+21
-24
lines changed

compiler/base/modify-cargo-toml/Cargo.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/base/modify-cargo-toml/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
authors = ["Jake Goulding <[email protected]>"]
55

66
[dependencies]
7-
serde = "1.0.66"
7+
serde = "1.0.78"
88
toml = "0.4.6"
9-
serde_derive = "1.0.66"
9+
serde_derive = "1.0.78"

compiler/base/modify-cargo-toml/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ fn set_edition(cargo_toml: Value, edition: &str) -> Value {
6666
#[derive(Debug, Serialize, Deserialize)]
6767
#[serde(rename_all = "kebab-case")]
6868
struct CargoToml {
69-
#[serde(default)]
70-
cargo_features: Vec<String>,
7169
package: Package,
7270
#[serde(flatten)]
7371
other: Other,
@@ -83,7 +81,6 @@ fn set_edition(cargo_toml: Value, edition: &str) -> Value {
8381
}
8482

8583
modify(cargo_toml, |mut cargo_toml: CargoToml| {
86-
ensure_string_in_vec(&mut cargo_toml.cargo_features, "edition");
8784
cargo_toml.package.edition = edition.into();
8885
cargo_toml
8986
})

0 commit comments

Comments
 (0)