Enum rustc_ast_lowering::BuiltinLintDiagnostics [−][src]
pub(crate) enum BuiltinLintDiagnostics {
Show 23 variants
Normal,
BareTraitObject(Span, bool),
AbsPathWithModule(Span),
ProcMacroDeriveResolutionFallback(Span),
MacroExpandedMacroExportsAccessedByAbsolutePaths(Span),
ElidedLifetimesInPaths(usize, Span, bool, Span, String),
UnknownCrateTypes(Span, String, String),
UnusedImports(String, Vec<(Span, String), Global>),
RedundantImport(Vec<(Span, bool), Global>, Ident),
DeprecatedMacro(Option<Symbol>, Span),
MissingAbi(Span, Abi),
UnusedDocComment(Span),
UnusedBuiltinAttribute {
attr_name: Symbol,
macro_name: String,
invoc_span: Span,
},
PatternsInFnsWithoutBody(Span, Ident),
LegacyDeriveHelpers(Span),
ExternDepSpec(String, ExternDepSpec),
ProcMacroBackCompat(String),
OrPatternsBackCompat(Span, String),
ReservedPrefix(Span),
TrailingMacro(bool, Ident),
BreakWithLabelAndLoop(Span),
NamedAsmLabel(String),
UnicodeTextFlow(Span, String),
}Variants
Normal
BareTraitObject(Span, bool)
AbsPathWithModule(Span)
Tuple Fields
0: SpanProcMacroDeriveResolutionFallback(Span)
Tuple Fields
0: SpanMacroExpandedMacroExportsAccessedByAbsolutePaths(Span)
Tuple Fields
0: SpanElidedLifetimesInPaths(usize, Span, bool, Span, String)
UnknownCrateTypes(Span, String, String)
UnusedImports(String, Vec<(Span, String), Global>)
RedundantImport(Vec<(Span, bool), Global>, Ident)
DeprecatedMacro(Option<Symbol>, Span)
MissingAbi(Span, Abi)
UnusedDocComment(Span)
Tuple Fields
0: SpanUnusedBuiltinAttribute
PatternsInFnsWithoutBody(Span, Ident)
LegacyDeriveHelpers(Span)
Tuple Fields
0: SpanExternDepSpec(String, ExternDepSpec)
ProcMacroBackCompat(String)
Tuple Fields
0: StringOrPatternsBackCompat(Span, String)
ReservedPrefix(Span)
Tuple Fields
0: SpanTrailingMacro(bool, Ident)
BreakWithLabelAndLoop(Span)
Tuple Fields
0: SpanNamedAsmLabel(String)
Tuple Fields
0: StringUnicodeTextFlow(Span, String)
Auto Trait Implementations
impl RefUnwindSafe for BuiltinLintDiagnostics
impl !Send for BuiltinLintDiagnostics
impl !Sync for BuiltinLintDiagnostics
impl Unpin for BuiltinLintDiagnostics
impl UnwindSafe for BuiltinLintDiagnostics
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: 72 bytes
Size for each variant:
Normal: 0 bytesBareTraitObject: 11 bytesAbsPathWithModule: 11 bytesProcMacroDeriveResolutionFallback: 11 bytesMacroExpandedMacroExportsAccessedByAbsolutePaths: 11 bytesElidedLifetimesInPaths: 55 bytesUnknownCrateTypes: 63 bytesUnusedImports: 55 bytesRedundantImport: 39 bytesDeprecatedMacro: 15 bytesMissingAbi: 11 bytesUnusedDocComment: 11 bytesUnusedBuiltinAttribute: 39 bytesPatternsInFnsWithoutBody: 23 bytesLegacyDeriveHelpers: 11 bytesExternDepSpec: 71 bytesProcMacroBackCompat: 31 bytesOrPatternsBackCompat: 39 bytesReservedPrefix: 11 bytesTrailingMacro: 15 bytesBreakWithLabelAndLoop: 11 bytesNamedAsmLabel: 31 bytesUnicodeTextFlow: 39 bytes