[][src]Module rustc_errors::diagnostic_builder

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Structs

DiagnosticBuilderInternal

Used for emitting structured error messages and other diagnostic information.

DiagnosticBuilderInnerInternal

This is a large type, and often used as a return value, especially within the frequently-used PResult type. In theory, return value optimization (RVO) should avoid unnecessary copying. In practice, it does not (at the time of writing). The split between DiagnosticBuilder and DiagnosticBuilderInner exists to avoid many memcpy calls.