Module rustc_errors::diagnostic_builder[][src]


Used for emitting structured error messages and other diagnostic information.

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.