Struct rustc_errors::Handler [] [src]

pub struct Handler {
    pub flags: HandlerFlags,
    // some fields omitted
}

A handler deals with errors; certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting.

Fields

Methods

impl Handler
[src]

[src]

[src]

[src]

[src]

[src]

[src]

Resets the diagnostic error count as well as the cached emitted diagnostics.

NOTE: DO NOT call this function from rustc. It is only meant to be called from external tools that want to reuse a Parser cleaning the previously emitted diagnostics as well as the overall count of emitted error diagnostics.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

true if a diagnostic with this code has already been emitted in this handler.

Used to suppress emitting the same error multiple times with extended explanation when calling -Zteach.

Trait Implementations

Auto Trait Implementations

impl !Send for Handler

impl !Sync for Handler