-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix inconsistent symbol mangling with -Zverbose #94037
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Always skip arguments that are the defaults of their respective parameters, to avoid generating inconsistent symbols for builds with `-Zverbose` flag and without it.
I don't remember what exactly prompted me to add this; I think it was when I was looking through the logs and was a bit confused with what was happening (though IIRC I was confused about the wrong this). Regardless, it's a bit unfortunate that symbol mangling and printing are so linked. I would expect that we shouldn't have to worry too much about I don't feel strongly one way or the other on removing this with or without adding an alternative. When I'm combing through logs for something, I almost always enable |
I agree that it seems unfortunate logs and symbols are so tightly tied together, but ultimately not really related to this particular PR. I'm inclined to r+ this and if a strong use case comes along for emitting the defaults we can do so in the future, perhaps gated on a flag that is more obviously crate-graph-wide necessary (or fix the symbol mangling to not be affected). @bors r+ rollup |
📌 Commit 3158372 has been approved by |
Fix inconsistent symbol mangling with -Zverbose Always skip arguments that are the defaults of their respective parameters, to avoid generating inconsistent symbols for builds with `-Zverbose` flag and without it.
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#92366 (Resolve concern of `derive_default_enum`) - rust-lang#93382 (Add a bit more padding in search box) - rust-lang#93962 (Make [u8]::cmp implementation branchless) - rust-lang#94015 (rustdoc --check option documentation) - rust-lang#94017 (Clarify confusing UB statement in MIR) - rust-lang#94020 (Support pretty printing of invalid constants) - rust-lang#94027 (Update browser UI test version) - rust-lang#94037 (Fix inconsistent symbol mangling with -Zverbose) - rust-lang#94045 (Update books) - rust-lang#94054 (:arrow_up: rust-analyzer) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Always skip arguments that are the defaults of their respective
parameters, to avoid generating inconsistent symbols for builds
with
-Zverbose
flag and without it.