A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.DiagCtxt.html below:

DiagCtxt in rustc_errors - Rust

pub struct DiagCtxt {
    pub(crate) inner: Lock<DiagCtxtInner>,
}
Expand description

A DiagCtxt deals with errors and other compiler output. Certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting.

Source§ Source Source Source Source Source Source Source Source

Translate message eagerly with args to SubdiagMessage::Eager.

Source

Translate message eagerly with args to String.

Source Source

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.

Source Source

Link this to a taintable context so that emitting errors will automatically set the Option<ErrorGuaranteed> instead of having to do that manually at every error emission site.

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4