Skip to content

Commit b08bbe5

Browse files
committed
Auto merge of rust-lang#6048 - giraffate:add_note_to_shadow_unrelated, r=matthiaskrgr
Add note to `shadow_unrelated` Fix rust-lang#5455. This lint can be disabled at function level. changelog: none
2 parents 61dd007 + 44eb66d commit b08bbe5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clippy_lints/src/shadow.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ declare_clippy_lint! {
7474
/// names to bindings or introducing more scopes to contain the bindings.
7575
///
7676
/// **Known problems:** This lint, as the other shadowing related lints,
77-
/// currently only catches very simple patterns.
77+
/// currently only catches very simple patterns. Note that
78+
/// `allow`/`warn`/`deny`/`forbid` attributes only work on the function level
79+
/// for this lint.
7880
///
7981
/// **Example:**
8082
/// ```rust

0 commit comments

Comments
 (0)