Lint for functions/variables/etc using the same name as a type (str
, u32
, ...)
#135196
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
It's confusing to read code where
str
(or another standard type name) is used as an identifier. It also produces misleading syntax highlighting.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: