Skip to content

Commit

Permalink
Auto merge of #117765 - onur-ozkan:fix-117762, r=clubby789
Browse files Browse the repository at this point in the history
enable unstable feature on `x clean [PATH]`

Since #111076 enables unstable cargo feature (`public-dependency`), we need to ensure that unstable features are enabled before reading libstd Cargo.toml.

Fixes #117762

cc `@Nilstrieb`
  • Loading branch information
bors committed Nov 10, 2023
2 parents 17d0a45 + fdb7279 commit 3d0e99d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bootstrap/src/core/build_steps/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d0e99d

Please sign in to comment.