about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
diff options
context:
space:
mode:
authorShoyu Vanilla <modulo641@gmail.com>2025-08-24 23:17:23 +0900
committerShoyu Vanilla <modulo641@gmail.com>2025-08-24 23:17:23 +0900
commit5ddf6846d5659ed28e1ea25e273e4c84082cf730 (patch)
treeb991687978b012287861f8479b3f03497e3edc4c /src/tools/rust-analyzer
parent80f4a79023739d092dd0d504e0a85fe1ede1e925 (diff)
fix: Masquerade as nightly cargo when invoking flycheck with `-Zscript`
Diffstat (limited to 'src/tools/rust-analyzer')
-rw-r--r--src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs
index 233bedec690..01ac75c09ae 100644
--- a/src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs
+++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs
@@ -588,6 +588,7 @@ impl FlycheckActor {
                     cmd.arg("--manifest-path");
                     cmd.arg(manifest_path);
                     if manifest_path.extension() == Some("rs") {
+                        cmd.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "nightly");
                         cmd.arg("-Zscript");
                     }
                 }