fix: Masquerade as nightly cargo when invoking flycheck with -Zscript

This commit is contained in:
Shoyu Vanilla 2025-08-24 23:17:23 +09:00
parent db7b3b1b91
commit 1c8fd6af24

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