enable unstable feature on x clean [PATH]

Since https://github.com/rust-lang/rust/pull/111076 enables
unstable cargo feature (`public-dependency`), we need to ensure
that unstable features are enabled before reading libstd Cargo.toml.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2023-11-09 23:04:51 +03:00
parent d8dbf7ca0e
commit fdb72795d1

View File

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