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
This fails to take effect if the shell has RUSTFLAGS defined, as that overrides whatever is in .cargo/config.
Maybe instead of using .cargo/config we need to pass Cargo a RUSTFLAGS consisting of $RUSTFLAGS -A dead_code in the case that a RUSTFLAGS exists already.
Fixed in trybuild 1.0.5. Tested by running RUSTFLAGS="-C target-cpu=native" cargo test against jonhoo/proc-macro-workshop@382f32a and observing that the dead code warnings no longer appear.
We currently write out a .cargo/config containing
[build] rustflags = ["-A", "dead_code"]
:trybuild/src/run.rs
Lines 178 to 187 in 32f36c4
This fails to take effect if the shell has RUSTFLAGS defined, as that overrides whatever is in .cargo/config.
Maybe instead of using .cargo/config we need to pass Cargo a RUSTFLAGS consisting of
$RUSTFLAGS -A dead_code
in the case that a RUSTFLAGS exists already.FYI @jonhoo
The text was updated successfully, but these errors were encountered: