Struct rustc_errors::diagnostic_builder::BugAbort
source · pub struct BugAbort;Expand description
Marker type which enables implementation of create_bug and emit_bug functions for
bug diagnostics.
Trait Implementations§
source§impl EmissionGuarantee for BugAbort
impl EmissionGuarantee for BugAbort
§type EmitResult = !
type EmitResult = !
This exists so that bugs and fatal errors can both result in
! (an
abort) when emitted, but have different aborting behaviour.source§fn emit_producing_guarantee(db: DiagnosticBuilder<'_, Self>) -> Self::EmitResult
fn emit_producing_guarantee(db: DiagnosticBuilder<'_, Self>) -> Self::EmitResult
Implementation of
DiagnosticBuilder::emit, fully controlled by each
impl of EmissionGuarantee, to make it impossible to create a value
of Self::EmitResult without actually performing the emission.impl Copy for BugAbort
Auto Trait Implementations§
impl RefUnwindSafe for BugAbort
impl Send for BugAbort
impl Sync for BugAbort
impl Unpin for BugAbort
impl UnwindSafe for BugAbort
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
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