Skip to content

Commit f8ae897

Browse files
Merge pull request #20528 from ShoyuVanilla/nightly-zscript
fix: Masquerade as nightly cargo when invoking flycheck with `-Zscript`
2 parents 58a7de6 + 1c8fd6a commit f8ae897

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/rust-analyzer/src/flycheck.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ impl FlycheckActor {
588588
cmd.arg("--manifest-path");
589589
cmd.arg(manifest_path);
590590
if manifest_path.extension() == Some("rs") {
591+
cmd.env("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS", "nightly");
591592
cmd.arg("-Zscript");
592593
}
593594
}

0 commit comments

Comments
 (0)