Skip to content

Commit c8d346e

Browse files
committed
bootstrap: the backtrace feature is stable, no need to allow it any more
1 parent 8ab71ab commit c8d346e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bootstrap/builder.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1556,13 +1556,12 @@ impl<'a> Builder<'a> {
15561556
match mode {
15571557
Mode::ToolBootstrap => {
15581558
// Restrict the allowed features to those passed by rustbuild, so we don't depend on nightly accidentally.
1559-
// HACK: because anyhow does feature detection in build.rs, we need to allow the backtrace feature too.
1560-
rustflags.arg("-Zallow-features=binary-dep-depinfo,backtrace");
1559+
rustflags.arg("-Zallow-features=binary-dep-depinfo");
15611560
}
15621561
Mode::ToolStd => {
15631562
// Right now this is just compiletest and a few other tools that build on stable.
15641563
// Allow them to use `feature(test)`, but nothing else.
1565-
rustflags.arg("-Zallow-features=binary-dep-depinfo,test,backtrace,proc_macro_internals,proc_macro_diagnostic,proc_macro_span");
1564+
rustflags.arg("-Zallow-features=binary-dep-depinfo,test,proc_macro_internals,proc_macro_diagnostic,proc_macro_span");
15661565
}
15671566
Mode::Std | Mode::Rustc | Mode::Codegen | Mode::ToolRustc => {}
15681567
}

0 commit comments

Comments
 (0)