X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Ftest.rs;h=6078e39ac9d3b8af5a7214921d91edff4c238385;hb=0ed254980274c3294c775e6c70ec28a76c902665;hp=159f2fba671c99c6f1e46bbe1ca43ea604a0b906;hpb=9a820f7397d26efd75184abddf25f4fb2e5ebf37;p=rust.git diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 159f2fba671..6078e39ac9d 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -378,6 +378,7 @@ fn run(self, builder: &Builder<'_>) { SourceType::InTree, &["sysroot-abi".to_owned()], ); + cargo.allow_features(tool::RustAnalyzer::ALLOW_FEATURES); let dir = builder.src.join(workspace_path); // needed by rust-analyzer to find its own text fixtures, cf. @@ -690,7 +691,7 @@ fn run(self, builder: &Builder<'_>) { // We need `ToolStd` for the locally-built sysroot because // compiletest uses unstable features of the `test` crate. builder.ensure(compile::Std::new(compiler, host)); - let cargo = tool::prepare_tool_cargo( + let mut cargo = tool::prepare_tool_cargo( builder, compiler, Mode::ToolStd, @@ -700,6 +701,7 @@ fn run(self, builder: &Builder<'_>) { SourceType::InTree, &[], ); + cargo.allow_features("test"); try_run(builder, &mut cargo.into()); }