Skip to content

Commit b9ba340

Browse files
committed
manual_bits: Delay msrv check
1 parent c0fa6a9 commit b9ba340

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clippy_lints/src/manual_bits.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ impl_lint_pass!(ManualBits => [MANUAL_BITS]);
5050

5151
impl<'tcx> LateLintPass<'tcx> for ManualBits {
5252
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
53-
if !self.msrv.meets(msrvs::MANUAL_BITS) {
54-
return;
55-
}
56-
5753
if let ExprKind::Binary(bin_op, left_expr, right_expr) = expr.kind
5854
&& let BinOpKind::Mul = &bin_op.node
5955
&& !in_external_macro(cx.sess(), expr.span)
56+
&& self.msrv.meets(msrvs::MANUAL_BITS)
6057
&& let ctxt = expr.span.ctxt()
6158
&& left_expr.span.ctxt() == ctxt
6259
&& right_expr.span.ctxt() == ctxt

0 commit comments

Comments
 (0)