Skip to content

Commit

Permalink
Prevent stable libtest from supporting -Zunstable-options
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Mar 12, 2023
1 parent 8a73f50 commit ce6adcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, stage: u32, car
""
};

// `libtest` uses this to know whether or not to support
// `-Zunstable-options`.
if !builder.unstable_features() {
cargo.env("CFG_DISABLE_UNSTABLE_FEATURES", "1");
}

let mut features = String::new();

// Cranelift doesn't support `asm`.
Expand Down

0 comments on commit ce6adcc

Please sign in to comment.