mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
Auto merge of #6048 - giraffate:add_note_to_shadow_unrelated, r=matthiaskrgr
Add note to `shadow_unrelated` Fix #5455. This lint can be disabled at function level. changelog: none
This commit is contained in:
commit
b08bbe50ea
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