-
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
Enable creating backtraces via -Ztreat-err-as-bug when stashing errors #122194
Conversation
#[allow(deprecated)] | ||
Some(ErrorGuaranteed::unchecked_error_guaranteed()) | ||
} | ||
Error => Some(self.span_delayed_bug(span, "stashing {key:?}")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stashed diagnostics, argh, such a PITA.
Having to create a delayed bug for every single one is unfortunate. Is it possible to only do that when -Ztreat-err-as-bug
is enabled? You haven't described the debugging much so I'm only guessing at what you're doing. Also a brief comment here explaining why a delayed bug is preferable to an unchecked ErrorGuarantee
would be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually like the use of span_delayed_bug
over unchecked_error_guaranteed
, and it's not like it's a perf issue
5126465
to
cfbc1b9
Compare
Eh, fine. @bors r+ |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#115141 (Update Windows platform support) - rust-lang#121865 (Add FileCheck annotations to MIR-opt unnamed-fields tests) - rust-lang#122000 (Fix 32-bit overflows in LLVM composite constants) - rust-lang#122194 (Enable creating backtraces via -Ztreat-err-as-bug when stashing errors) - rust-lang#122319 (Don't ICE when non-self part of trait goal is constrained in new solver) - rust-lang#122339 (Update books) - rust-lang#122342 (Update /NODEFAUTLIB comment for msvc) - rust-lang#122343 (Remove some unnecessary `allow(incomplete_features)` in the test suite) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#122194 - oli-obk:stash_delay_bug, r=nnethercote Enable creating backtraces via -Ztreat-err-as-bug when stashing errors r? `@nnethercote` Otherwise I can't debug stashed errors because I can't find their source
r? @nnethercote
Otherwise I can't debug stashed errors because I can't find their source