mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
fix: Masquerade as nightly cargo when invoking flycheck with -Zscript
This commit is contained in:
parent
db7b3b1b91
commit
1c8fd6af24
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue