pub enum BuiltinLintDiagnostics {
Show 25 variants Normal, AbsPathWithModule(Span), ProcMacroDeriveResolutionFallback(Span), MacroExpandedMacroExportsAccessedByAbsolutePaths(Span), ElidedLifetimesInPaths(usizeSpanboolSpan), UnknownCrateTypes(SpanStringString), UnusedImports(StringVec<(Span, String)>, Option<Span>), 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), ProcMacroBackCompat(String), OrPatternsBackCompat(SpanString), ReservedPrefix(Span), TrailingMacro(boolIdent), BreakWithLabelAndLoop(Span), NamedAsmLabel(String), UnicodeTextFlow(SpanString), UnexpectedCfg((Symbol, Span), Option<(Symbol, Span)>), DeprecatedWhereclauseLocation(SpanString), SingleUseLifetime { param_span: Span, deletion_span: Span, use_span: Option<(Span, bool)>, }, NamedArgumentUsedPositionally { position_sp_to_replace: Option<Span>, position_sp_for_msg: Option<Span>, named_arg_sp: Span, named_arg_name: String, is_formatting_arg: bool, },
}

Variants

Normal

AbsPathWithModule(Span)

ProcMacroDeriveResolutionFallback(Span)

MacroExpandedMacroExportsAccessedByAbsolutePaths(Span)

ElidedLifetimesInPaths(usizeSpanboolSpan)

UnknownCrateTypes(SpanStringString)

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

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

DeprecatedMacro(Option<Symbol>, Span)

MissingAbi(SpanAbi)

UnusedDocComment(Span)

UnusedBuiltinAttribute

Fields

attr_name: Symbol
macro_name: String
invoc_span: Span

PatternsInFnsWithoutBody(SpanIdent)

LegacyDeriveHelpers(Span)

ProcMacroBackCompat(String)

OrPatternsBackCompat(SpanString)

ReservedPrefix(Span)

TrailingMacro(boolIdent)

BreakWithLabelAndLoop(Span)

NamedAsmLabel(String)

UnicodeTextFlow(SpanString)

UnexpectedCfg((Symbol, Span), Option<(Symbol, Span)>)

DeprecatedWhereclauseLocation(SpanString)

SingleUseLifetime

Fields

param_span: Span

Span of the parameter which declares this lifetime.

deletion_span: Span

Span of the code that should be removed when eliding this lifetime. This span should include leading or trailing comma.

use_span: Option<(Span, bool)>

Span of the single use, or None if the lifetime is never used. If true, the lifetime will be fully elided.

NamedArgumentUsedPositionally

Fields

position_sp_to_replace: Option<Span>

Span where the named argument is used by position and will be replaced with the named argument name

position_sp_for_msg: Option<Span>

Span where the named argument is used by position and is used for lint messages

named_arg_sp: Span

Span where the named argument’s name is (so we know where to put the warning message)

named_arg_name: String

String containing the named arguments name

is_formatting_arg: bool

Indicates if the named argument is used as a width/precision for formatting

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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: 64 bytes

Size for each variant:

  • Normal: 0 bytes
  • AbsPathWithModule: 11 bytes
  • ProcMacroDeriveResolutionFallback: 11 bytes
  • MacroExpandedMacroExportsAccessedByAbsolutePaths: 11 bytes
  • ElidedLifetimesInPaths: 31 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
  • ProcMacroBackCompat: 31 bytes
  • OrPatternsBackCompat: 39 bytes
  • ReservedPrefix: 11 bytes
  • TrailingMacro: 15 bytes
  • BreakWithLabelAndLoop: 11 bytes
  • NamedAsmLabel: 31 bytes
  • UnicodeTextFlow: 39 bytes
  • UnexpectedCfg: 27 bytes
  • DeprecatedWhereclauseLocation: 39 bytes
  • SingleUseLifetime: 31 bytes
  • NamedArgumentUsedPositionally: 63 bytes