-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Format symbols under shared frames #79692
Conversation
r? @cramertj (rust-highfive has picked a reviewer for you, use r? to override) |
Ah! Looks like we do have a bit of coverage for the panic format afterall 👀 |
This looks reasonable to me, but it looks like CI is unhappy? r=me with that fixed. |
We discussed this at a recent Libs meeting and thought making these formats consistent the other way was preferable. So instead of changing the way frames from |
I've gone ahead and updated the description here to reflect the actual change being made, which is to This should be ready for another review now. Also cc @rust-lang/project-error-handling |
This comment has been minimized.
This comment has been minimized.
@cramertj Are you still happy with this with the change made to |
r? @sfackler |
I'm a bit confused as to the state of the PR - it looks like now it's just a purely stylistic change to the code, with no actual behavioral difference? |
@sfackler it’s a bit subtle, but the difference is that we move the call to |
I no longer have the bandwidth to carry this forward but if somebody else would like to pick it up sometime in the future then please feel free! |
I'll take this one over |
…r=yaahc Reopen rust-lang#79692 (Format symbols under shared frames) Reopening rust-lang#79692.
…r=yaahc Reopen rust-lang#79692 (Format symbols under shared frames) Reopening rust-lang#79692.
Rollup of 11 pull requests Successful merges: - rust-lang#85054 (Revert SGX inline asm syntax) - rust-lang#85182 (Move `available_concurrency` implementation to `sys`) - rust-lang#86037 (Add `io::Cursor::{remaining, remaining_slice, is_empty}`) - rust-lang#86114 (Reopen rust-lang#79692 (Format symbols under shared frames)) - rust-lang#86297 (Allow to pass arguments to rustdoc-gui tool) - rust-lang#86334 (Resolve type aliases to the type they point to in intra-doc links) - rust-lang#86367 (Fix comment about rustc_inherit_overflow_checks in abs().) - rust-lang#86381 (Add regression test for issue rust-lang#39161) - rust-lang#86387 (Remove `#[allow(unused_lifetimes)]` which is now unnecessary) - rust-lang#86398 (Add regression test for issue rust-lang#54685) - rust-lang#86493 (Say "this enum variant takes"/"this struct takes" instead of "this function takes") Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Part of #71706
Also related to #72981
This changes the format used for backtraces in the currently unstable
std::backtrace
to align them with backtraces produced bypanic!
. It involves un-nesting symbols that share frames instd::backtrace
to appear as if they belong under individual frames.before:
after:
Since we don't share too much code between these formats right now or really check the
Display
formats for backtraces, they might end up diverging again.