Enum rustc_lint_defs::BuiltinLintDiagnostics [−][src]
pub enum BuiltinLintDiagnostics {
Show 22 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)>),
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),
}
Variants
AbsPathWithModule(Span)
Tuple Fields of AbsPathWithModule
0: Span
ProcMacroDeriveResolutionFallback(Span)
Tuple Fields of ProcMacroDeriveResolutionFallback
0: Span
MacroExpandedMacroExportsAccessedByAbsolutePaths(Span)
Tuple Fields of MacroExpandedMacroExportsAccessedByAbsolutePaths
0: Span
UnusedDocComment(Span)
Tuple Fields of UnusedDocComment
0: Span
LegacyDeriveHelpers(Span)
Tuple Fields of LegacyDeriveHelpers
0: Span
ExternDepSpec(String, ExternDepSpec)
Tuple Fields of ExternDepSpec
0: String
1: ExternDepSpec
ProcMacroBackCompat(String)
Tuple Fields of ProcMacroBackCompat
0: String
ReservedPrefix(Span)
Tuple Fields of ReservedPrefix
0: Span
BreakWithLabelAndLoop(Span)
Tuple Fields of BreakWithLabelAndLoop
0: Span
NamedAsmLabel(String)
Tuple Fields of NamedAsmLabel
0: 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 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 bytes