Module lints
rustc_
lint
1.85.0-beta.1
(e30eefff4 2025-01-08)
Module lints
Module Items
Modules
Structs
Enums
In crate rustc_
lint
Modules
async_closures
async_fn_in_trait
builtin
context
dangling
default_could_be_derived
deref_into_dyn_supertrait
drop_forget_useless
early
enum_intrinsics_non_enums
errors
expect
for_loops_over_fallibles
foreign_modules
hidden_unicode_codepoints
if_let_rescope
impl_trait_overcaptures
internal
invalid_from_utf8
late
let_underscore
levels
lints
macro_expr_fragment_specifier_2024_migration
map_unit_fn
multiple_supertrait_upcastable
non_ascii_idents
non_fmt_panic
non_local_def
nonstandard_style
noop_method_call
opaque_hidden_inferred_bound
pass_by_value
passes
precedence
ptr_nulls
redundant_semicolon
reference_casting
shadowed_into_iter
static_mut_refs
traits
types
unit_bindings
unqualified_local_imports
unused
Macros
declare_combined_early_lint_pass
declare_combined_late_lint_pass
early_lint_methods
expand_combined_early_lint_pass_method
expand_combined_early_lint_pass_methods
expand_combined_late_lint_pass_method
expand_combined_late_lint_pass_methods
late_lint_methods
Structs
BufferedEarlyLint
BuiltinCombinedEarlyLintPass
BuiltinCombinedModuleLateLintPass
BuiltinCombinedPreExpansionLintPass
EarlyContext
FutureIncompatibleInfo
LateContext
Lint
LintId
LintStore
Enums
CheckLintNameResult
FindLintError
Level
Statics
ARRAY_INTO_ITER
BOXED_SLICE_INTO_ITER
DEFAULT_LOCALE_RESOURCE
Traits
EarlyCheckNode
EarlyLintPass
LateLintPass
LintContext
LintPass
Functions
check_ast_node
check_crate
late_lint_mod
lint_mod
new_lint_store
provide
register_builtins
register_internals
unerased_lint_store
Type Aliases
LintVec
rustc_lint
Module
lints
Copy item path
Settings
Help
Summary
Source
Modules
§
unexpected_
cfg_
name
🔒
unexpected_
cfg_
value
🔒
Structs
§
AbsPath
With
Module
🔒
AbsPath
With
Module
Sugg
🔒
Ambiguous
Glob
Imports
🔒
Ambiguous
Glob
Reexports
🔒
Ambiguous
Negative
Literals
Current
Behavior
Suggestion
🔒
Ambiguous
Negative
Literals
Diag
🔒
Ambiguous
Negative
Literals
Negative
Literal
Suggestion
🔒
Ambiguous
Wide
Pointer
Comparisons
Addr
Metadata
Suggestion
🔒
Associated
Const
Elided
Lifetime
🔒
Async
FnIn
Trait
Diag
🔒
Atomic
Ordering
Fence
🔒
Atomic
Ordering
Load
🔒
Atomic
Ordering
Store
🔒
Avoid
AttSyntax
🔒
Avoid
Intel
Syntax
🔒
BadOpt
Access
Diag
🔒
Break
With
Label
AndLoop
🔒
Break
With
Label
AndLoop
Sub
🔒
Builtin
Anonymous
Params
🔒
Builtin
Clashing
Extern
Sub
🔒
Builtin
Const
NoMangle
🔒
Builtin
Deprecated
Attr
Link
🔒
Builtin
Deprecated
Attr
Used
🔒
Builtin
Deref
Nullptr
🔒
Builtin
Explicit
Outlives
🔒
Builtin
Explicit
Outlives
Suggestion
🔒
Builtin
Feature
Issue
Note
🔒
Builtin
Incomplete
Features
🔒
Builtin
Incomplete
Features
Help
🔒
Builtin
Internal
Features
🔒
Builtin
Keyword
Idents
🔒
Builtin
Missing
Copy
Impl
🔒
Builtin
Missing
Debug
Impl
🔒
Builtin
Missing
Doc
🔒
Builtin
Mutables
Transmutes
🔒
Builtin
NoMangle
Generic
🔒
Builtin
NonShorthand
Field
Patterns
🔒
Builtin
Trivial
Bounds
🔒
Builtin
Type
Alias
Bounds
🔒
Builtin
Ungated
Async
FnTrack
Caller
🔒
Builtin
Unpermitted
Type
Init
🔒
Builtin
Unpermitted
Type
Init
Sub
🔒
Builtin
Unreachable
Pub
🔒
Builtin
Unstable
Features
🔒
Builtin
Unused
DocComment
🔒
Builtin
While
True
🔒
Byte
Slice
InPacked
Struct
With
Derive
🔒
CfgAttr
NoAttributes
🔒
Confusable
Identifier
Pair
🔒
Dangling
Pointers
From
Temporaries
🔒
Default
Hash
Types
Diag
🔒
Deprecated
Lint
Name
🔒
Deprecated
Lint
Name
From
Command
Line
🔒
Deprecated
Where
Clause
Location
🔒
Diag
OutOf
Impl
🔒
Drop
Copy
Diag
🔒
Drop
Glue
🔒
Drop
RefDiag
🔒
Drop
Trait
Constraints
Diag
🔒
Duplicate
Macro
Attribute
🔒
Duplicate
Matcher
Binding
🔒
Elided
Lifetimes
InPaths
🔒
Elided
Named
Lifetime
🔒
Enum
Intrinsics
MemDiscriminate
🔒
Enum
Intrinsics
MemVariant
🔒
Expectation
🔒
Expectation
Note
🔒
Extern
Crate
NotIdiomatic
🔒
ForLoops
Over
Fallibles
Diag
🔒
ForLoops
Over
Fallibles
Question
Mark
🔒
ForLoops
Over
Fallibles
Suggestion
🔒
Forget
Copy
Diag
🔒
Forget
RefDiag
🔒
Hidden
Glob
Reexports
🔒
Hidden
Unicode
Codepoints
Diag
🔒
Hidden
Unicode
Codepoints
Diag
Labels
🔒
Identifier
NonAscii
Char
🔒
Identifier
Uncommon
Codepoints
🔒
Ignored
Unless
Crate
Specified
🔒
IllFormed
Attribute
Input
🔒
ImproperC
Types
🔒
Incomplete
Include
🔒
Invalid
Atomic
Ordering
Diag
🔒
Legacy
Derive
Helpers
🔒
Lint
Pass
ByHand
🔒
Macro
Expanded
Macro
Exports
Accessed
ByAbsolute
Paths
🔒
Macro
Expr
Fragment2024
🔒
Macro
IsPrivate
🔒
Macro
Rule
Never
Used
🔒
Macro
UseDeprecated
🔒
Mapping
ToUnit
🔒
Meta
Variable
Still
Repeating
🔒
Meta
Variable
Wrong
Operator
🔒
Missing
Abi
🔒
Missing
Fragment
Specifier
🔒
Missing
Unsafe
OnExtern
🔒
Mixed
Script
Confusables
🔒
Multiple
Supertrait
Upcastable
🔒
Named
Argument
Used
Positionally
🔒
NonBinding
LetSub
🔒
NonCamel
Case
Type
🔒
NonFmt
Panic
Braces
🔒
NonFmt
Panic
Unused
🔒
NonGlob
Import
Type
IrInherent
🔒
NonLocal
Definitions
Cargo
Update
Note
🔒
NonSnake
Case
Diag
🔒
NonUpper
Case
Global
🔒
Noop
Method
Call
Diag
🔒
Only
Castu8
ToChar
🔒
OrPatterns
Back
Compat
🔒
OutOf
Scope
Macro
Calls
🔒
Overflowing
BinHex
🔒
Overflowing
BinHex
Sign
BitSub
🔒
Overflowing
Int
🔒
Overflowing
IntHelp
🔒
Overflowing
Literal
🔒
OverflowingU
Int
🔒
Overruled
Attribute
Lint
🔒
Pass
ByValue
Diag
🔒
Path
Statement
Drop
🔒
Path
Statement
NoEffect
🔒
Patterns
InFns
Without
Body
Sub
🔒
Private
Extern
Crate
Reexport
🔒
Proc
Macro
Derive
Resolution
Fallback
🔒
Query
Instability
🔒
Query
Untracked
🔒
Range
Endpoint
OutOf
Range
🔒
RawPrefix
🔒
Redundant
Import
🔒
Redundant
Import
Visibility
🔒
Redundant
Semicolons
Diag
🔒
RefOf
MutStatic
🔒
Removed
Lint
🔒
Removed
Lint
From
Command
Line
🔒
Renamed
Lint
🔒
Renamed
Lint
From
Command
Line
🔒
Reserved
Multihash
🔒
Reserved
Prefix
🔒
Reserved
String
🔒
Shadowed
Into
Iter
Diag
🔒
Single
UseLifetime
🔒
Single
UseLifetime
Sugg
🔒
Span
UseEq
Ctxt
Diag
🔒
Supertrait
AsDeref
Target
🔒
Supertrait
AsDeref
Target
Label
🔒
Suspicious
Double
RefClone
Diag
🔒
Suspicious
Double
RefDeref
Diag
🔒
Symbol
Intern
String
Literal
Diag
🔒
Trailing
Macro
🔒
TyQualified
🔒
Tykind
Diag
🔒
Tykind
Kind
🔒
Type
IrInherent
Usage
🔒
Undropped
Manually
Drops
Diag
🔒
Undropped
Manually
Drops
Suggestion
🔒
Unexpected
Builtin
Cfg
🔒
Unexpected
CfgCargo
Macro
Help
🔒
Unexpected
CfgName
🔒
Unexpected
CfgRustc
Help
🔒
Unexpected
CfgRustc
Macro
Help
🔒
Unexpected
CfgValue
🔒
Unicode
Char
Note
Sub
🔒
Unicode
Text
Flow
🔒
Unicode
Text
Flow
Suggestion
🔒
Unit
Bindings
Diag
🔒
Unknown
Crate
Types
🔒
Unknown
Crate
Types
Sub
🔒
Unknown
Diagnostic
Attribute
🔒
Unknown
Diagnostic
Attribute
Typo
Sugg
🔒
Unknown
Lint
🔒
Unknown
Lint
From
Command
Line
🔒
Unknown
Macro
Variable
🔒
Unnameable
Test
Items
🔒
Unqualified
Local
Imports
Diag
🔒
Unsafe
Attr
Outside
Unsafe
🔒
Unsafe
Attr
Outside
Unsafe
Suggestion
🔒
Unstable
Feature
🔒
Untranslatable
Diag
🔒
Unused
Allocation
Diag
🔒
Unused
Allocation
MutDiag
🔒
Unused
Builtin
Attribute
🔒
Unused
Closure
🔒
Unused
Comparisons
🔒
Unused
Coroutine
🔒
Unused
Crate
Dependency
🔒
Unused
Def
🔒
Unused
Delim
🔒
Unused
Delim
Suggestion
🔒
Unused
DocComment
🔒
Unused
Extern
Crate
🔒
Unused
Import
Braces
Diag
🔒
Unused
Imports
🔒
Unused
Label
🔒
Unused
Lifetime
🔒
Unused
Macro
Definition
🔒
Unused
Macro
Use
🔒
Unused
Op
🔒
Unused
Qualifications
🔒
Unused
Result
🔒
Variant
Size
Differences
Diag
🔒
WasmC
Abi
🔒
Enums
§
Ambiguous
Wide
Pointer
Comparisons
🔒
Ambiguous
Wide
Pointer
Comparisons
Addr
Suggestion
🔒
Builtin
Clashing
Extern
🔒
Builtin
Deprecated
Attr
Link
Suggestion
🔒
Builtin
Ellipsis
Inclusive
Range
Patterns
Lint
🔒
Builtin
Special
Module
Name
Used
🔒
Builtin
Unsafe
🔒
Builtin
Unused
DocComment
Sub
🔒
Deprecated
Where
Clause
Location
Sugg
🔒
ForLoops
Over
Fallibles
Loop
Sub
🔒
Hidden
Unicode
Codepoints
Diag
Sub
🔒
Inner
Attribute
Unstable
🔒
Invalid
AsmLabel
🔒
Invalid
From
Utf8
Diag
🔒
Invalid
NanComparisons
🔒
Invalid
NanComparisons
Suggestion
🔒
Invalid
Reference
Casting
Diag
🔒
MutRef
Sugg
🔒
NonBinding
Let
🔒
NonCamel
Case
Type
Sub
🔒
NonLocal
Definitions
Diag
🔒
NonSnake
Case
Diag
Sub
🔒
NonUpper
Case
Global
Sub
🔒
Overflowing
BinHex
Sign
🔒
Overflowing
BinHex
Sub
🔒
Path
Statement
Drop
Sub
🔒
Patterns
InFns
Without
Body
🔒
PtrNull
Checks
Diag
🔒
Redundant
Import
Sub
🔒
Renamed
Lint
Suggestion
🔒
Shadowed
Into
Iter
Diag
Sub
🔒
Unexpected
CfgCargo
Help
🔒
Unknown
Lint
Suggestion
🔒
Unpredictable
Function
Pointer
Comparisons
🔒
Unpredictable
Function
Pointer
Comparisons
Suggestion
🔒
Unused
DefSuggestion
🔒
Unused
Imports
Sugg
🔒
Unused
OpSuggestion
🔒
UseInclusive
Range
🔒
UseLet
Underscore
Ignore
Suggestion
🔒