pub enum BuiltinLintDiagnostics {
Show 25 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),
UnexpectedCfg((Symbol, Span), Option<(Symbol, Span)>),
DeprecatedWhereclauseLocation(Span, String),
SingleUseLifetime {
param_span: Span,
deletion_span: 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,
},
}
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)
UnexpectedCfg((Symbol, Span), Option<(Symbol, Span)>)
DeprecatedWhereclauseLocation(Span, String)
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.
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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BuiltinLintDiagnostics
impl !Send for BuiltinLintDiagnostics
impl !Sync for BuiltinLintDiagnostics
impl Unpin for BuiltinLintDiagnostics
impl UnwindSafe for BuiltinLintDiagnostics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut 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: 64 bytes
Size for each variant:
Normal
: 0 bytesAbsPathWithModule
: 11 bytesProcMacroDeriveResolutionFallback
: 11 bytesMacroExpandedMacroExportsAccessedByAbsolutePaths
: 11 bytesElidedLifetimesInPaths
: 31 bytesUnknownCrateTypes
: 63 bytesUnusedImports
: 63 bytesRedundantImport
: 39 bytesDeprecatedMacro
: 15 bytesMissingAbi
: 11 bytesUnusedDocComment
: 11 bytesUnusedBuiltinAttribute
: 39 bytesPatternsInFnsWithoutBody
: 23 bytesLegacyDeriveHelpers
: 11 bytesProcMacroBackCompat
: 31 bytesOrPatternsBackCompat
: 39 bytesReservedPrefix
: 11 bytesTrailingMacro
: 15 bytesBreakWithLabelAndLoop
: 11 bytesNamedAsmLabel
: 31 bytesUnicodeTextFlow
: 39 bytesUnexpectedCfg
: 27 bytesDeprecatedWhereclauseLocation
: 39 bytesSingleUseLifetime
: 31 bytesNamedArgumentUsedPositionally
: 63 bytes