enable unstable feature on x clean [PATH] · rust-lang/rust@fdb7279 (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -68,6 +68,12 @@ macro_rules! clean_crate_tree {
68 68 let compiler = self.compiler;
69 69 let target = compiler.host;
70 70 let mut cargo = builder.bare_cargo(compiler, $mode, target, "clean");
71 +
72 +// Since https://github.com/rust-lang/rust/pull/111076 enables
73 +// unstable cargo feature (`public-dependency`), we need to ensure
74 +// that unstable features are enabled before reading libstd Cargo.toml.
75 + cargo.env("RUSTC_BOOTSTRAP", "1");
76 +
71 77 for krate in &*self.crates {
72 78 cargo.arg("-p");
73 79 cargo.arg(krate);