Enum rustc_lint_defs::BuiltinLintDiag
source · 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
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
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
ByteSliceInPackedStructWithDerive
UnusedExternCrate
ExternCrateNotIdiomatic
AmbiguousGlobImports
Fields
§
diag: AmbiguityErrorDiag
AmbiguousGlobReexports
Fields
HiddenGlobReexports
Fields
UnusedQualifications
AssociatedConstElidedLifetime
RedundantImportVisibility
Trait Implementations§
Auto Trait Implementations§
impl DynSend for BuiltinLintDiag
impl DynSync for BuiltinLintDiag
impl Freeze for BuiltinLintDiag
impl RefUnwindSafe for BuiltinLintDiag
impl Send for BuiltinLintDiag
impl Sync for BuiltinLintDiag
impl Unpin for BuiltinLintDiag
impl UnwindSafe for BuiltinLintDiag
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
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 bytesAbsPathWithModule
: 16 bytesProcMacroDeriveResolutionFallback
: 16 bytesMacroExpandedMacroExportsAccessedByAbsolutePaths
: 16 bytesElidedLifetimesInPaths
: 40 bytesUnknownCrateTypes
: 64 bytesUnusedImports
: 72 bytesRedundantImport
: 48 bytesDeprecatedMacro
: 20 bytesMissingAbi
: 20 bytesUnusedDocComment
: 16 bytesUnusedBuiltinAttribute
: 48 bytesPatternsInFnsWithoutBody
: 28 bytesLegacyDeriveHelpers
: 16 bytesProcMacroBackCompat
: 32 bytesOrPatternsBackCompat
: 40 bytesReservedPrefix
: 16 bytesTrailingMacro
: 24 bytesBreakWithLabelAndLoop
: 16 bytesNamedAsmLabel
: 32 bytesUnicodeTextFlow
: 40 bytesUnexpectedCfgName
: 32 bytesUnexpectedCfgValue
: 32 bytesDeprecatedWhereclauseLocation
: 40 bytesSingleUseLifetime
: 40 bytesNamedArgumentUsedPositionally
: 72 bytesByteSliceInPackedStructWithDerive
: 0 bytesUnusedExternCrate
: 16 bytesExternCrateNotIdiomatic
: 24 bytesAmbiguousGlobImports
: 200 bytesAmbiguousGlobReexports
: 72 bytesHiddenGlobReexports
: 72 bytesUnusedQualifications
: 16 bytesAssociatedConstElidedLifetime
: 20 bytesRedundantImportVisibility
: 40 bytes