1
Fork 0

Make FatalErrorMarker lower priority than other panics

This commit is contained in:
John Kåre Alsaker 2023-11-03 10:56:30 +01:00
parent 1d6f05fd37
commit ff1858e2aa
3 changed files with 30 additions and 14 deletions

View file

@ -5,7 +5,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!(FatalError).
// We don't want to invoke the panic handler and print a backtrace for fatal errors.