-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-rustflagsArea: rustflagsArea: rustflagsS-propose-closeStatus: A team member has nominated this for closing, pending further input from the teamStatus: A team member has nominated this for closing, pending further input from the team
Description
Yes, stupid title, for a stupid issue. I know it was decided a while back not to support pass-through of unknown options to Rustc, which implies that Rustc options should be replicated in Cargo.
Currently, one must switch to the nightly compiler then can:
RUSTFLAGS="-Z external-macro-backtrace" cargo test
This works (in Bash), but requires all dependencies to be recompiled (unnecessarily since the option is only required for the failing crate, generally the final one).- Run
cargo test -v
, copy the failing command and append-Z external-macro-backtrace
This works but is tedious.
There are two ways to solve this:
- Enable the switch by default, everywhere (in nightly compilers). This would of course have to be a Rust decision not a Cargo one. See: show macro backtrace with -Z flag rust#45545
- Add a Cargo switch to add the appropriate Rustc switch (possibly only to the last binary).
estebank, bbqsrc, nerdrew, sbditto85, KizzyCode and 26 more
Metadata
Metadata
Assignees
Labels
A-rustflagsArea: rustflagsArea: rustflagsS-propose-closeStatus: A team member has nominated this for closing, pending further input from the teamStatus: A team member has nominated this for closing, pending further input from the team