Skip to content

Commit 1c8fd6a

Browse files
committed
fix: Masquerade as nightly cargo when invoking flycheck with -Zscript
1 parent db7b3b1 commit 1c8fd6a

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)