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.
Translate message
eagerly with args
to SubdiagMessage::Eager
.
Translate message
eagerly with args
to String
.
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.
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