diff options
| author | flip1995 <philipp.krones@embecosm.com> | 2021-07-09 15:06:12 +0200 |
|---|---|---|
| committer | flip1995 <philipp.krones@embecosm.com> | 2021-07-09 15:06:12 +0200 |
| commit | d2c8f50bbed32a6bcec5f397043342c980e945b3 (patch) | |
| tree | 095eec4d8b4442a221765ffd451f4c39d88043c1 /clippy_utils | |
| parent | 5add651223a8d3ba8e2efccf942f9013d2f270a1 (diff) | |
| download | rust-d2c8f50bbed32a6bcec5f397043342c980e945b3.tar.gz rust-d2c8f50bbed32a6bcec5f397043342c980e945b3.zip | |
Rename `is_allowed` -> `is_lint_allowed`
Diffstat (limited to 'clippy_utils')
| -rw-r--r-- | clippy_utils/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs index 121ca2da511..364ae536ecd 100644 --- a/clippy_utils/src/lib.rs +++ b/clippy_utils/src/lib.rs @@ -1173,7 +1173,7 @@ pub fn is_try<'tcx>(cx: &LateContext<'_>, expr: &'tcx Expr<'tcx>) -> Option<&'tc /// Returns `true` if the lint is allowed in the current context /// /// Useful for skipping long running code when it's unnecessary -pub fn is_allowed(cx: &LateContext<'_>, lint: &'static Lint, id: HirId) -> bool { +pub fn is_lint_allowed(cx: &LateContext<'_>, lint: &'static Lint, id: HirId) -> bool { cx.tcx.lint_level_at_node(lint, id).0 == Level::Allow } |
