pub enum BuiltinLintDiagnostics {
Show 24 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)>, },
}

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.

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