Auto merge of #117557 - Zoxc:panic-prio, r=petrochenkov
Make `FatalErrorMarker` lower priority than other panics This makes `FatalErrorMarker` lower priority than other panics in a parallel sections. If any other panics occur, they will be unwound instead of `FatalErrorMarker`. This ensures `rustc` will exit with the correct error code on ICEs. This fixes https://github.com/rust-lang/rust/issues/116659.
This commit is contained in:
commit
d8dbf7ca0e
3 changed files with 30 additions and 14 deletions
|
@ -3,7 +3,7 @@
|
|||
#[must_use]
|
||||
pub struct FatalError;
|
||||
|
||||
pub struct FatalErrorMarker;
|
||||
pub use rustc_data_structures::FatalErrorMarker;
|
||||
|
||||
// Don't implement Send on FatalError. This makes it impossible to `panic_any!(FatalError)`.
|
||||
// We don't want to invoke the panic handler and print a backtrace for fatal errors.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue