mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +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
@ -74,7 +74,9 @@ declare_clippy_lint! {
|
|||||||
/// names to bindings or introducing more scopes to contain the bindings.
|
/// names to bindings or introducing more scopes to contain the bindings.
|
||||||
///
|
///
|
||||||
/// **Known problems:** This lint, as the other shadowing related lints,
|
/// **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:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
Loading…
Reference in New Issue
Block a user