Open RalfJung opened 3 weeks ago
cargo clippy
setsclippy-driver
as RUSTC_WRAPPER
(Not related to this bug itself, but AFAIK, as said in https://github.com/cuviper/autocfg/issues/58#issuecomment-2067625980, cargo clippy
sets clippy-driver
as RUSTC_WORKSPACE_WRAPPER, not RUSTC_WRAPPER.)
(Not related to this bug itself, but AFAIK, as said in cuviper/autocfg#58 (comment),
cargo clippy
setsclippy-driver
as RUSTC_WORKSPACE_WRAPPER, not RUSTC_WRAPPER.)
Ah, sorry for that -- fixed.
This came up in https://github.com/cuviper/autocfg/issues/58, and may also become more relevant with https://github.com/rust-lang/cargo/pull/13659 and https://github.com/djc/rustc-version-rs/issues/45:
Apparently,
cargo clippy
setsclippy-driver
as RUSTC_WORKSPACE_WRAPPER, but that wrapper behaves incorrectly, i.e. it does not always properly forward everything to rustc:I am surprised that clippy-driver is even being set as RUSTC_WORKSPACE_WRAPPER; Miri (which has a similar problem to solve) does not do that. Instead cargo-miri sets itself as RUSTC_WRAPPER so that it can then dispatch to the driver as appropriate. Either way can work, but whatever is set as RUSTC_WRAPPER/RUSTC_WORKSPACE_WRAPPER should behave like a proper wrapper and not intercept
--version
queries.