FatalError in rustc_errors - Rust (original) (raw)
pub struct FatalError;
Expand description
Used as a return value to signify a fatal error occurred.
Implementation of Diag::emit
, fully controlled by each impl
ofEmissionGuarantee
, to make it impossible to create a value ofSelf::EmitResult
without actually performing the emission.
This exists so that bugs and fatal errors can both result in !
(an abort) when emitted, but have different aborting behaviour.
Returns the lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access
)
Provides type-based access to context intended for error reports. Read more
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes