Add note to shadow_unrelated

This lint can be disabled at function level.
This commit is contained in:
Takayuki Nakata 2020-09-16 00:25:00 +09:00
parent 9f0f035fe0
commit 44eb66d947

View file

@ -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