Make Rust Analyzer tests faster by compiling less code

This commit is contained in:
Jakub Beránek 2023-07-01 21:07:28 +02:00
parent 5633798af6
commit b9df85f6ed
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B

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