about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-09-23 11:06:30 +0200
committerRalf Jung <post@ralfj.de>2022-09-23 11:07:16 +0200
commitc8d346e527fc556e3d3715c963c98a474a543320 (patch)
treed9ac79d2b48c59a521349f8025d166c03248a54b
parent8ab71ab59fd17a1c51d23b68eced935b92431b70 (diff)
downloadrust-c8d346e527fc556e3d3715c963c98a474a543320.tar.gz
rust-c8d346e527fc556e3d3715c963c98a474a543320.zip
bootstrap: the backtrace feature is stable, no need to allow it any more
-rw-r--r--src/bootstrap/builder.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index bc6283ef467..742e614d0ff 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -1556,13 +1556,12 @@ impl<'a> Builder<'a> {
         match mode {
             Mode::ToolBootstrap => {
                 // Restrict the allowed features to those passed by rustbuild, so we don't depend on nightly accidentally.
-                // HACK: because anyhow does feature detection in build.rs, we need to allow the backtrace feature too.
-                rustflags.arg("-Zallow-features=binary-dep-depinfo,backtrace");
+                rustflags.arg("-Zallow-features=binary-dep-depinfo");
             }
             Mode::ToolStd => {
                 // Right now this is just compiletest and a few other tools that build on stable.
                 // Allow them to use `feature(test)`, but nothing else.
-                rustflags.arg("-Zallow-features=binary-dep-depinfo,test,backtrace,proc_macro_internals,proc_macro_diagnostic,proc_macro_span");
+                rustflags.arg("-Zallow-features=binary-dep-depinfo,test,proc_macro_internals,proc_macro_diagnostic,proc_macro_span");
             }
             Mode::Std | Mode::Rustc | Mode::Codegen | Mode::ToolRustc => {}
         }