Closed
Description
... Especially for build scripts or proc-macro crates.
There's caveats like:
- RUSTFLAGS is only applied to target crates, not to host crates.
- cargo's current
[lints]
only supports "regular" lints not tool lints likerustc::xxx
.
One possible scheme may be to...
[..] unconditionally passing an arbitrary flag and asserting its presence in each compiler crate. Ugly, but it could work I think.
#138035 (comment)