pub enum BuiltinLintDiag {
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(Option<(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(Option<(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 BuiltinLintDiag

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> Aligned for T

source§

const ALIGN: Alignment = _

Alignment of Self.
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
§

impl<T> Filterable for T

§

fn filterable( self, filter_name: &'static str ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<'a, T> Captures<'a> for T
where T: ?Sized,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T
where T: Send + Sync,

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