Skip to content

Commit ab7469e

Browse files
committed
fix(script): Don't override the release profile
This has been around since #12224 and isn't in the RFC, so its being removed. This is part of #12207.
1 parent 7ec959e commit ab7469e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/cargo/util/toml/embedded.rs

-19
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,6 @@ fn expand_manifest_(
141141
toml::Value::Array(vec![toml::Value::Table(bin)]),
142142
);
143143

144-
let release = manifest
145-
.entry("profile".to_owned())
146-
.or_insert_with(|| toml::Value::Table(Default::default()))
147-
.as_table_mut()
148-
.ok_or_else(|| anyhow::format_err!("`profile` must be a table"))?
149-
.entry("release".to_owned())
150-
.or_insert_with(|| toml::Value::Table(Default::default()))
151-
.as_table_mut()
152-
.ok_or_else(|| anyhow::format_err!("`profile.release` must be a table"))?;
153-
release
154-
.entry("strip".to_owned())
155-
.or_insert_with(|| toml::Value::Boolean(true));
156-
157144
Ok(manifest)
158145
}
159146

@@ -588,9 +575,6 @@ build = false
588575
edition = "2024"
589576
name = "test-"
590577
591-
[profile.release]
592-
strip = true
593-
594578
[workspace]
595579
596580
"#]]
@@ -626,9 +610,6 @@ build = false
626610
edition = "2024"
627611
name = "test-"
628612
629-
[profile.release]
630-
strip = true
631-
632613
[workspace]
633614
634615
"#]]

0 commit comments

Comments
 (0)