File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1232,7 +1232,12 @@ impl<'a> Builder<'a> {
1232
1232
// HACK: because anyhow does feature detection in build.rs, we need to allow the backtrace feature too.
1233
1233
rustflags. arg ( "-Zallow-features=binary-dep-depinfo,backtrace" ) ;
1234
1234
}
1235
- Mode :: Std | Mode :: Rustc | Mode :: ToolStd | Mode :: Codegen | Mode :: ToolRustc => { }
1235
+ 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 => { }
1236
1241
}
1237
1242
1238
1243
cargo. arg ( "-j" ) . arg ( self . jobs ( ) . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments