Represent the capability instead of the lint name in msrv aliases

`INTEGER_BITS` better represents the addition of the `BITS` value on the
primitive integer types.
This commit is contained in:
Samuel Tardieu 2025-02-21 09:42:12 +01:00
parent 732e3290de
commit 4ac7a5361b
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualBits {
if let ExprKind::Binary(bin_op, left_expr, right_expr) = expr.kind
&& let BinOpKind::Mul = &bin_op.node
&& !expr.span.from_expansion()
&& self.msrv.meets(msrvs::MANUAL_BITS)
&& self.msrv.meets(msrvs::INTEGER_BITS)
&& let ctxt = expr.span.ctxt()
&& left_expr.span.ctxt() == ctxt
&& right_expr.span.ctxt() == ctxt