Enum rustc_lint_defs::BuiltinLintDiagnostics[][src]

pub enum BuiltinLintDiagnostics {
Show 22 variants Normal, BareTraitObject(Spanbool), AbsPathWithModule(Span), ProcMacroDeriveResolutionFallback(Span), MacroExpandedMacroExportsAccessedByAbsolutePaths(Span), ElidedLifetimesInPaths(usizeSpanboolSpanString), UnknownCrateTypes(SpanStringString), UnusedImports(StringVec<(Span, String)>), RedundantImport(Vec<(Span, bool)>, Ident), DeprecatedMacro(Option<Symbol>, Span), MissingAbi(SpanAbi), UnusedDocComment(Span), UnusedBuiltinAttribute { attr_name: Symbol, macro_name: String, invoc_span: Span, }, PatternsInFnsWithoutBody(SpanIdent), LegacyDeriveHelpers(Span), ExternDepSpec(StringExternDepSpec), ProcMacroBackCompat(String), OrPatternsBackCompat(SpanString), ReservedPrefix(Span), TrailingMacro(boolIdent), BreakWithLabelAndLoop(Span), NamedAsmLabel(String),
}

Variants

Normal
BareTraitObject(Spanbool)

Tuple Fields of BareTraitObject

0: Span1: bool
AbsPathWithModule(Span)

Tuple Fields of AbsPathWithModule

0: Span
ProcMacroDeriveResolutionFallback(Span)

Tuple Fields of ProcMacroDeriveResolutionFallback

0: Span
MacroExpandedMacroExportsAccessedByAbsolutePaths(Span)

Tuple Fields of MacroExpandedMacroExportsAccessedByAbsolutePaths

0: Span
ElidedLifetimesInPaths(usizeSpanboolSpanString)

Tuple Fields of ElidedLifetimesInPaths

0: usize1: Span2: bool3: Span4: String
UnknownCrateTypes(SpanStringString)

Tuple Fields of UnknownCrateTypes

0: Span1: String2: String
UnusedImports(StringVec<(Span, String)>)

Tuple Fields of UnusedImports

0: String1: Vec<(Span, String)>
RedundantImport(Vec<(Span, bool)>, Ident)

Tuple Fields of RedundantImport

0: Vec<(Span, bool)>1: Ident
DeprecatedMacro(Option<Symbol>, Span)

Tuple Fields of DeprecatedMacro

0: Option<Symbol>1: Span
MissingAbi(SpanAbi)

Tuple Fields of MissingAbi

0: Span1: Abi
UnusedDocComment(Span)

Tuple Fields of UnusedDocComment

0: Span
UnusedBuiltinAttribute

Fields of UnusedBuiltinAttribute

attr_name: Symbolmacro_name: Stringinvoc_span: Span
PatternsInFnsWithoutBody(SpanIdent)

Tuple Fields of PatternsInFnsWithoutBody

0: Span1: Ident
LegacyDeriveHelpers(Span)

Tuple Fields of LegacyDeriveHelpers

0: Span
ExternDepSpec(StringExternDepSpec)

Tuple Fields of ExternDepSpec

0: String1: ExternDepSpec
ProcMacroBackCompat(String)

Tuple Fields of ProcMacroBackCompat

0: String
OrPatternsBackCompat(SpanString)

Tuple Fields of OrPatternsBackCompat

0: Span1: String
ReservedPrefix(Span)

Tuple Fields of ReservedPrefix

0: Span
TrailingMacro(boolIdent)

Tuple Fields of TrailingMacro

0: bool1: Ident
BreakWithLabelAndLoop(Span)

Tuple Fields of BreakWithLabelAndLoop

0: Span
NamedAsmLabel(String)

Tuple Fields of NamedAsmLabel

0: String

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: