about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmos Wenger <amoswenger@gmail.com>2022-07-22 18:06:38 +0200
committerAmos Wenger <amoswenger@gmail.com>2022-07-24 10:38:12 +0200
commit44f50c5fd275dfe7260d6eea5065e12eb3c8e811 (patch)
tree76688cf5d19513812db6c0a79efd528fd248425c
parent37ed531fccb64aec4daed05d922d757beb0b1cd2 (diff)
downloadrust-44f50c5fd275dfe7260d6eea5065e12eb3c8e811.tar.gz
rust-44f50c5fd275dfe7260d6eea5065e12eb3c8e811.zip
Add comment about CARGO_WORKSPACE_DIR
-rw-r--r--src/bootstrap/test.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 9578520c429..0fa9671738e 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -392,6 +392,8 @@ impl Step for RustAnalyzer {
         );
 
         let dir = builder.src.join(path);
+        // needed by rust-analyzer to find its own text fixtures, cf.
+        // https://github.com/rust-analyzer/expect-test/issues/33
         cargo.env("CARGO_WORKSPACE_DIR", &dir);
 
         cargo.add_rustc_lib_path(builder, compiler);