We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
compiletest
feature(test)
1 parent 1b5e121 commit e71c48cCopy full SHA for e71c48c
src/bootstrap/builder.rs
@@ -1232,7 +1232,12 @@ impl<'a> Builder<'a> {
1232
// HACK: because anyhow does feature detection in build.rs, we need to allow the backtrace feature too.
1233
rustflags.arg("-Zallow-features=binary-dep-depinfo,backtrace");
1234
}
1235
- Mode::Std | Mode::Rustc | Mode::ToolStd | Mode::Codegen | Mode::ToolRustc => {}
+ Mode::ToolStd => {
1236
+ // Right now this is just compiletest and a few other tools that build on stable.
1237
+ // Allow them to use `feature(test)`, but nothing else.
1238
+ rustflags.arg("-Zallow-features=binary-dep-depinfo,test,backtrace");
1239
+ }
1240
+ Mode::Std | Mode::Rustc | Mode::Codegen | Mode::ToolRustc => {}
1241
1242
1243
cargo.arg("-j").arg(self.jobs().to_string());
0 commit comments