about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2023-07-01 21:07:28 +0200
committerJakub Beránek <berykubik@gmail.com>2023-07-01 21:07:28 +0200
commitb9df85f6edeb135dd9abb691862e7e9e30740060 (patch)
treef014509130bb7935ac090cfcb546f7d018828f53
parent5633798af6f1326aa575d85a5ae155f88afb6010 (diff)
downloadrust-b9df85f6edeb135dd9abb691862e7e9e30740060.tar.gz
rust-b9df85f6edeb135dd9abb691862e7e9e30740060.zip
Make Rust Analyzer tests faster by compiling less code
-rw-r--r--src/bootstrap/test.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 2c1f612e39f..0c0c07f5387 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -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