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> {
12321232 // HACK: because anyhow does feature detection in build.rs, we need to allow the backtrace feature too.
12331233 rustflags. arg ( "-Zallow-features=binary-dep-depinfo,backtrace" ) ;
12341234 }
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 => { }
12361241 }
12371242
12381243 cargo. arg ( "-j" ) . arg ( self . jobs ( ) . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments