mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-03 18:09:42 +00:00
Add note to shadow_unrelated
This lint can be disabled at function level.
This commit is contained in:
parent
9f0f035fe0
commit
44eb66d947
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ declare_clippy_lint! {
|
|||
/// names to bindings or introducing more scopes to contain the bindings.
|
||||
///
|
||||
/// **Known problems:** This lint, as the other shadowing related lints,
|
||||
/// currently only catches very simple patterns.
|
||||
/// currently only catches very simple patterns. Note that
|
||||
/// `allow`/`warn`/`deny`/`forbid` attributes only work on the function level
|
||||
/// for this lint.
|
||||
///
|
||||
/// **Example:**
|
||||
/// ```rust
|
||||
|
|
Loading…
Reference in a new issue