diff options
| author | bors <bors@rust-lang.org> | 2020-09-16 17:52:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-16 17:52:40 +0000 |
| commit | b08bbe50eac80607bd7e8a3d87d15cbf583ce989 (patch) | |
| tree | b8eed8770e8c4838f613db312de1ea1a4cd5ef33 | |
| parent | 61dd0075360dbb65e4673a1d156f7983602abda8 (diff) | |
| parent | 44eb66d947191be51f0a7b7d35c05936a4142a97 (diff) | |
| download | rust-b08bbe50eac80607bd7e8a3d87d15cbf583ce989.tar.gz rust-b08bbe50eac80607bd7e8a3d87d15cbf583ce989.zip | |
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
| -rw-r--r-- | clippy_lints/src/shadow.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/shadow.rs b/clippy_lints/src/shadow.rs index ef4a54735a4..225fe58906f 100644 --- a/clippy_lints/src/shadow.rs +++ b/clippy_lints/src/shadow.rs @@ -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 |
