Skip to content

Commit

Permalink
Auto merge of rust-lang#6048 - giraffate:add_note_to_shadow_unrelated…
Browse files Browse the repository at this point in the history
…, r=matthiaskrgr

Add note to `shadow_unrelated`

Fix rust-lang#5455.

This lint can be disabled at function level.

changelog: none
  • Loading branch information
bors committed Sep 16, 2020
2 parents 61dd007 + 44eb66d commit b08bbe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clippy_lints/src/shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b08bbe5

Please sign in to comment.