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: Span

ProcMacroDeriveResolutionFallback(Span)

Tuple Fields

0: Span

MacroExpandedMacroExportsAccessedByAbsolutePaths(Span)

Tuple Fields

0: Span

UnknownCrateTypes(Span, String, String)

Tuple Fields

0: Span
1: String
2: String

UnusedImports(String, Vec<(Span, String)>, Option<Span>)

Tuple Fields

0: String

RedundantImport(Vec<(Span, bool)>, Ident)

Tuple Fields

1: Ident

DeprecatedMacro(Option<Symbol>, Span)

Tuple Fields

1: Span

MissingAbi(Span, Abi)

Tuple Fields

0: Span
1: Abi

UnusedDocComment(Span)

Tuple Fields

0: Span

UnusedBuiltinAttribute

Fields

attr_name: Symbol
macro_name: String
invoc_span: Span

PatternsInFnsWithoutBody(Span, Ident)

Tuple Fields

0: Span
1: Ident

LegacyDeriveHelpers(Span)

Tuple Fields

0: Span

ExternDepSpec(String, ExternDepSpec)

Tuple Fields

0: String

ProcMacroBackCompat(String)

Tuple Fields

0: String

OrPatternsBackCompat(Span, String)

Tuple Fields

0: Span
1: String

ReservedPrefix(Span)

Tuple Fields

0: Span

TrailingMacro(bool, Ident)

Tuple Fields

0: bool
1: Ident

BreakWithLabelAndLoop(Span)

Tuple Fields

0: Span

NamedAsmLabel(String)

Tuple Fields

0: String

UnicodeTextFlow(Span, String)

Tuple Fields

0: Span
1: 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:

  • Normal: 0 bytes
  • AbsPathWithModule: 11 bytes
  • ProcMacroDeriveResolutionFallback: 11 bytes
  • MacroExpandedMacroExportsAccessedByAbsolutePaths: 11 bytes
  • UnknownCrateTypes: 63 bytes
  • UnusedImports: 63 bytes
  • RedundantImport: 39 bytes
  • DeprecatedMacro: 15 bytes
  • MissingAbi: 11 bytes
  • UnusedDocComment: 11 bytes
  • UnusedBuiltinAttribute: 39 bytes
  • PatternsInFnsWithoutBody: 23 bytes
  • LegacyDeriveHelpers: 11 bytes
  • ExternDepSpec: 71 bytes
  • ProcMacroBackCompat: 31 bytes
  • OrPatternsBackCompat: 39 bytes
  • ReservedPrefix: 11 bytes
  • TrailingMacro: 15 bytes
  • BreakWithLabelAndLoop: 11 bytes
  • NamedAsmLabel: 31 bytes
  • UnicodeTextFlow: 39 bytes