diff --git a/clippy_lints/src/manual_ilog2.rs b/clippy_lints/src/manual_ilog2.rs index 56e15fb30eaa..b9d0f5df14d2 100644 --- a/clippy_lints/src/manual_ilog2.rs +++ b/clippy_lints/src/manual_ilog2.rs @@ -48,6 +48,7 @@ impl ManualIlog2 { impl_lint_pass!(ManualIlog2 => [MANUAL_ILOG2]); impl LateLintPass<'_> for ManualIlog2 { + fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { if !self.msrv.meets(msrvs::MANUAL_ILOG2) { return; @@ -102,4 +103,6 @@ impl LateLintPass<'_> for ManualIlog2 { ); } } + + extract_msrv_attr!(LateContext); }