pub enum BuiltinLintDiagnostics {
Show 34 variants Normal, AbsPathWithModule(Span), ProcMacroDeriveResolutionFallback(Span), MacroExpandedMacroExportsAccessedByAbsolutePaths(Span), ElidedLifetimesInPaths(usize, Span, bool, 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), ProcMacroBackCompat(String), OrPatternsBackCompat(Span, String), ReservedPrefix(Span), TrailingMacro(bool, Ident), BreakWithLabelAndLoop(Span), NamedAsmLabel(String), UnicodeTextFlow(Span, String), UnexpectedCfgName((Symbol, Span), Option<(Symbol, Span)>), UnexpectedCfgValue((Symbol, Span), Option<(Symbol, Span)>), DeprecatedWhereclauseLocation(Span, String), SingleUseLifetime { param_span: Span, deletion_span: Option<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, }, ByteSliceInPackedStructWithDerive, UnusedExternCrate { removal_span: Span, }, ExternCrateNotIdiomatic { vis_span: Span, ident_span: Span, }, AmbiguousGlobImports { diag: AmbiguityErrorDiag, }, AmbiguousGlobReexports { name: String, namespace: String, first_reexport_span: Span, duplicate_reexport_span: Span, }, HiddenGlobReexports { name: String, namespace: String, glob_reexport_span: Span, private_item_span: Span, }, UnusedQualifications { removal_span: Span, }, AssociatedConstElidedLifetime { elided: bool, span: Span, },
}

Variants§

§

Normal

§

AbsPathWithModule(Span)

§

ProcMacroDeriveResolutionFallback(Span)

§

MacroExpandedMacroExportsAccessedByAbsolutePaths(Span)

§

ElidedLifetimesInPaths(usize, Span, bool, 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

Fields

§attr_name: Symbol
§macro_name: String
§invoc_span: Span
§

PatternsInFnsWithoutBody(Span, Ident)

§

LegacyDeriveHelpers(Span)

§

ProcMacroBackCompat(String)

§

OrPatternsBackCompat(Span, String)

§

ReservedPrefix(Span)

§

TrailingMacro(bool, Ident)

§

BreakWithLabelAndLoop(Span)

§

NamedAsmLabel(String)

§

UnicodeTextFlow(Span, String)

§

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

§

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

§

DeprecatedWhereclauseLocation(Span, String)

§

SingleUseLifetime

Fields

§param_span: Span

Span of the parameter which declares this lifetime.

§deletion_span: Option<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

§

ByteSliceInPackedStructWithDerive

§

UnusedExternCrate

Fields

§removal_span: Span
§

ExternCrateNotIdiomatic

Fields

§vis_span: Span
§ident_span: Span
§

AmbiguousGlobImports

§

AmbiguousGlobReexports

Fields

§name: String

The name for which collision(s) have occurred.

§namespace: String

The name space for which the collision(s) occurred in.

§first_reexport_span: Span

Span where the name is first re-exported.

§duplicate_reexport_span: Span

Span where the same name is also re-exported.

§

HiddenGlobReexports

Fields

§name: String

The name of the local binding which shadows the glob re-export.

§namespace: String

The namespace for which the shadowing occurred in.

§glob_reexport_span: Span

The glob reexport that is shadowed by the local binding.

§private_item_span: Span

The local binding that shadows the glob reexport.

§

UnusedQualifications

Fields

§removal_span: Span

The span of the unnecessarily-qualified path to remove.

§

AssociatedConstElidedLifetime

Fields

§elided: bool
§span: Span

Trait Implementations§

source§

impl Debug for BuiltinLintDiagnostics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::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: 208 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
  • UnexpectedCfgName: 27 bytes
  • UnexpectedCfgValue: 27 bytes
  • DeprecatedWhereclauseLocation: 39 bytes
  • SingleUseLifetime: 35 bytes
  • NamedArgumentUsedPositionally: 63 bytes
  • ByteSliceInPackedStructWithDerive: 0 bytes
  • UnusedExternCrate: 11 bytes
  • ExternCrateNotIdiomatic: 19 bytes
  • AmbiguousGlobImports: 207 bytes
  • AmbiguousGlobReexports: 71 bytes
  • HiddenGlobReexports: 71 bytes
  • UnusedQualifications: 11 bytes
  • AssociatedConstElidedLifetime: 11 bytes