You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Veetaha
changed the title
Lint suppressions via RUSTFLAGS doesn't apply to proc-macro cratees
Lint suppressions via RUSTFLAGS don't apply to proc-macro crates
Nov 4, 2024
That's a cargo issue, not a Miri issue. Miri always invokes cargo with --target <tuple>, meaning cargo separately builds host crates and target crates. RUSTFLAGS only applies to target crates. So closing as a duplicate of rust-lang/cargo#4423.
I tried this code:
A proc-macro crate:
And a runtime crate:
I invoked the following command:
RUSTFLAGS="--allow unused_variables" cargo +nightly miri run
The following output was generated:
With
--verbose
:Notice that the compilation of the proc macro didn't receive the
--allow unused_variables
parameter.Version
The text was updated successfully, but these errors were encountered: