Enum rustc_codegen_llvm::llvm_::diagnostic::Diagnostic
source · pub enum Diagnostic<'ll> {
Optimization(OptimizationDiagnostic<'ll>),
InlineAsm(InlineAsmDiagnostic),
PGO(&'ll DiagnosticInfo),
Linker(&'ll DiagnosticInfo),
Unsupported(&'ll DiagnosticInfo),
UnknownDiagnostic(&'ll DiagnosticInfo),
}
Variants§
Optimization(OptimizationDiagnostic<'ll>)
InlineAsm(InlineAsmDiagnostic)
PGO(&'ll DiagnosticInfo)
Linker(&'ll DiagnosticInfo)
Unsupported(&'ll DiagnosticInfo)
UnknownDiagnostic(&'ll DiagnosticInfo)
LLVM has other types that we do not wrap here.
Implementations§
source§impl<'ll> Diagnostic<'ll>
impl<'ll> Diagnostic<'ll>
pub unsafe fn unpack(di: &'ll DiagnosticInfo) -> Self
Auto Trait Implementations§
impl<'ll> !RefUnwindSafe for Diagnostic<'ll>
impl<'ll> !Send for Diagnostic<'ll>
impl<'ll> !Sync for Diagnostic<'ll>
impl<'ll> Unpin for Diagnostic<'ll>
impl<'ll> !UnwindSafe for Diagnostic<'ll>
Blanket Implementations§
Layout§
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: 96 bytes
Size for each variant:
Optimization
: 96 bytesInlineAsm
: 80 bytesPGO
: 8 bytesLinker
: 8 bytesUnsupported
: 8 bytesUnknownDiagnostic
: 8 bytes