pub enum BuiltinLintDiagnostics {
Show 35 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, }, RedundantImportVisibility { span: Span, max_vis: String, },
}

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
§

RedundantImportVisibility

Fields

§span: Span
§max_vis: String

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 T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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: 200 bytes

Size for each variant:

  • Normal: 0 bytes
  • AbsPathWithModule: 16 bytes
  • ProcMacroDeriveResolutionFallback: 16 bytes
  • MacroExpandedMacroExportsAccessedByAbsolutePaths: 16 bytes
  • ElidedLifetimesInPaths: 40 bytes
  • UnknownCrateTypes: 64 bytes
  • UnusedImports: 72 bytes
  • RedundantImport: 48 bytes
  • DeprecatedMacro: 20 bytes
  • MissingAbi: 20 bytes
  • UnusedDocComment: 16 bytes
  • UnusedBuiltinAttribute: 48 bytes
  • PatternsInFnsWithoutBody: 28 bytes
  • LegacyDeriveHelpers: 16 bytes
  • ProcMacroBackCompat: 32 bytes
  • OrPatternsBackCompat: 40 bytes
  • ReservedPrefix: 16 bytes
  • TrailingMacro: 24 bytes
  • BreakWithLabelAndLoop: 16 bytes
  • NamedAsmLabel: 32 bytes
  • UnicodeTextFlow: 40 bytes
  • UnexpectedCfgName: 32 bytes
  • UnexpectedCfgValue: 32 bytes
  • DeprecatedWhereclauseLocation: 40 bytes
  • SingleUseLifetime: 40 bytes
  • NamedArgumentUsedPositionally: 72 bytes
  • ByteSliceInPackedStructWithDerive: 0 bytes
  • UnusedExternCrate: 16 bytes
  • ExternCrateNotIdiomatic: 24 bytes
  • AmbiguousGlobImports: 200 bytes
  • AmbiguousGlobReexports: 72 bytes
  • HiddenGlobReexports: 72 bytes
  • UnusedQualifications: 16 bytes
  • AssociatedConstElidedLifetime: 20 bytes
  • RedundantImportVisibility: 40 bytes