Merge pull request #20528 from ShoyuVanilla/nightly-zscript

fix: Masquerade as nightly cargo when invoking flycheck with `-Zscript`
This commit is contained in:
Chayim Refael Friedman 2025-08-25 19:12:47 +00:00 committed by GitHub
commit f8ae8975a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");
}
}