-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it easy to use external-macro-backtrace
#6049
Comments
This might have to be a different issue, but I would like to add: ps: oh yeah, this is cargo repo, so it must be an issue on rust I suppose. Do others agree I should open such issue or do the line numbers make sense for you? |
This is due to how we serialize macros across crates, rust-lang/rust#66364 should take care of that. |
#5546 is about discoverability of rustc Whats not clear to me is the benefit of duplicating
This is the nature of RUSTFLAGS and improvements are being tracked in #8716 and #12739. |
Generally, we don't easily duplicate For now, if you want to apply rustflags only to the final binary, [ Second that we can close this as #12857 provides sufficient information to fix the human error. |
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).
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:
The text was updated successfully, but these errors were encountered: