pub struct HandlerFlags {
    pub can_emit_warnings: bool,
    pub treat_err_as_bug: Option<NonZeroUsize>,
    pub dont_buffer_diagnostics: bool,
    pub report_delayed_bugs: bool,
    pub macro_backtrace: bool,
    pub deduplicate_diagnostics: bool,
    pub track_diagnostics: bool,
}

Fields§

§can_emit_warnings: bool

If false, warning-level lints are suppressed. (rustc: see --allow warnings and --cap-lints)

§treat_err_as_bug: Option<NonZeroUsize>

If Some, the Nth error-level diagnostic is upgraded to bug-level. (rustc: see -Z treat-err-as-bug)

§dont_buffer_diagnostics: bool

If true, immediately emit diagnostics that would otherwise be buffered. (rustc: see -Z dont-buffer-diagnostics and -Z treat-err-as-bug)

§report_delayed_bugs: bool

If true, immediately print bugs registered with delay_span_bug. (rustc: see -Z report-delayed-bugs)

§macro_backtrace: bool

Show macro backtraces. (rustc: see -Z macro-backtrace)

§deduplicate_diagnostics: bool

If true, identical diagnostics are reported only once.

§track_diagnostics: bool

Track where errors are created. Enabled with -Ztrack-diagnostics.

Trait Implementations§

source§

impl Clone for HandlerFlags

source§

fn clone(&self) -> HandlerFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for HandlerFlags

source§

fn default() -> HandlerFlags

Returns the “default value” for a type. Read more
source§

impl Copy for HandlerFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

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: 16 bytes