Skip to content

Commit a29f0af

Browse files
Urgausyphar
authored andcommitted
Remove -Zunstable-options from the generated cargo_args
1 parent 1725883 commit a29f0af

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/metadata/lib.rs

-9
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ impl Metadata {
270270
let mut all_rustdoc_args = self.rustdoc_args.clone();
271271
all_rustdoc_args.extend_from_slice(rustdoc_args);
272272

273-
if !self.rustc_args.is_empty() || !all_rustdoc_args.is_empty() {
274-
cargo_args.push("-Z".into());
275-
cargo_args.push("unstable-options".into());
276-
}
277-
278273
// Pass `RUSTFLAGS` and `RUSTDOCFLAGS` using `cargo --config`, which handles whitespace correctly.
279274
if !self.rustc_args.is_empty() {
280275
cargo_args.push("--config".into());
@@ -758,8 +753,6 @@ mod test_calculations {
758753
String::from("rustdoc"),
759754
"--lib".into(),
760755
"-Zrustdoc-map".into(),
761-
"-Z".into(),
762-
"unstable-options".into(),
763756
"--config".into(),
764757
r#"build.rustdocflags=["-Z", "unstable-options", "--static-root-path", "/", "--cap-lints", "warn"]"#.into(),
765758
];
@@ -774,8 +767,6 @@ mod test_calculations {
774767
String::from("rustdoc"),
775768
"--lib".into(),
776769
"-Zrustdoc-map".into(),
777-
"-Z".into(),
778-
"unstable-options".into(),
779770
"--config".into(),
780771
"build.rustflags=[\"--cfg\", \"x\"]".into(),
781772
"-Zhost-config".into(),

0 commit comments

Comments
 (0)