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.
This commit is contained in:
Matthias Krüger 2023-07-02 10:27:22 +02:00 committed by GitHub
commit efd2739ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,7 +379,9 @@ impl Step for RustAnalyzer {
let host = self.host;
let compiler = builder.compiler(stage, host);
builder.ensure(tool::RustAnalyzer { compiler, target: self.host }).expect("in-tree tool");
// We don't need to build the whole Rust Analyzer for the proc-macro-srv test suite,
// but we do need the standard library to be present.
builder.ensure(compile::Std::new(compiler, host));
let workspace_path = "src/tools/rust-analyzer";
// until the whole RA test suite runs on `i686`, we only run