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 true, error-level diagnostics are 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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion 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