diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-08-25 19:12:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-25 19:12:47 +0000 |
| commit | 769f1641797dc3188aa0ebeeed7d5eea9bdeff2b (patch) | |
| tree | 2c7c0d5e782c64d35dda51cc901321e34d19e7c1 | |
| parent | 781e0268eeab7fb8eca11034da595b2ee6a3dccb (diff) | |
| parent | 5ddf6846d5659ed28e1ea25e273e4c84082cf730 (diff) | |
| download | rust-769f1641797dc3188aa0ebeeed7d5eea9bdeff2b.tar.gz rust-769f1641797dc3188aa0ebeeed7d5eea9bdeff2b.zip | |
Merge pull request #20528 from ShoyuVanilla/nightly-zscript
fix: Masquerade as nightly cargo when invoking flycheck with `-Zscript`
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/flycheck.rs | 1 |
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"); } } |
