Enum rustc_lint_defs::BuiltinLintDiagnostics [−][src]
pub enum BuiltinLintDiagnostics {
Show 21 variants
Normal,
AbsPathWithModule(Span),
ProcMacroDeriveResolutionFallback(Span),
MacroExpandedMacroExportsAccessedByAbsolutePaths(Span),
UnknownCrateTypes(Span, String, String),
UnusedImports(String, Vec<(Span, String)>, Option<Span>),
RedundantImport(Vec<(Span, bool)>, 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
AbsPathWithModule(Span)
Tuple Fields
0: SpanProcMacroDeriveResolutionFallback(Span)
Tuple Fields
0: SpanMacroExpandedMacroExportsAccessedByAbsolutePaths(Span)
Tuple Fields
0: SpanUnknownCrateTypes(Span, String, String)
UnusedImports(String, Vec<(Span, String)>, Option<Span>)
RedundantImport(Vec<(Span, bool)>, 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)
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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 bytesAbsPathWithModule: 11 bytesProcMacroDeriveResolutionFallback: 11 bytesMacroExpandedMacroExportsAccessedByAbsolutePaths: 11 bytesUnknownCrateTypes: 63 bytesUnusedImports: 63 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
