Skip to content

Commit efd2739

Browse files
authored
Rollup merge of #113244 - Kobzol:bootstrap-rust-analyzer-tests, r=jyn514
Make Rust Analyzer tests faster by compiling less code This should bring down the test duration of RA significantly.
2 parents a353cb0 + b9df85f commit efd2739

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/test.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ impl Step for RustAnalyzer {
379379
let host = self.host;
380380
let compiler = builder.compiler(stage, host);
381381

382-
builder.ensure(tool::RustAnalyzer { compiler, target: self.host }).expect("in-tree tool");
382+
// We don't need to build the whole Rust Analyzer for the proc-macro-srv test suite,
383+
// but we do need the standard library to be present.
384+
builder.ensure(compile::Std::new(compiler, host));
383385

384386
let workspace_path = "src/tools/rust-analyzer";
385387
// until the whole RA test suite runs on `i686`, we only run

0 commit comments

Comments
 (0)