BugAbort in rustc_errors - Rust (original) (raw)

pub struct BugAbort;

Expand description

Marker type which enables implementation of create_bug and emit_bug functions for bug diagnostics.

Source§

Source§

Source§

This exists so that bugs and fatal errors can both result in ! (an abort) when emitted, but have different aborting behaviour.

Source§

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.

Source§

§

§

§

§

§

§

§

§

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