Skip to content

Commit 44eb66d

Browse files
committed
Add note to shadow_unrelated
This lint can be disabled at function level.
1 parent 9f0f035 commit 44eb66d

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)