Skip to content

Commit 1250c26

Browse files
authored
Represent the capability instead of the lint name in msrv aliases (#14269)
`INTEGER_BITS` better represents the addition of the `BITS` value on the primitive integer types. Inspired by #14263 changelog: none
2 parents 732e329 + 4ac7a53 commit 1250c26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: clippy_lints/src/manual_bits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualBits {
5353
if let ExprKind::Binary(bin_op, left_expr, right_expr) = expr.kind
5454
&& let BinOpKind::Mul = &bin_op.node
5555
&& !expr.span.from_expansion()
56-
&& self.msrv.meets(msrvs::MANUAL_BITS)
56+
&& self.msrv.meets(msrvs::INTEGER_BITS)
5757
&& let ctxt = expr.span.ctxt()
5858
&& left_expr.span.ctxt() == ctxt
5959
&& right_expr.span.ctxt() == ctxt

Diff for: clippy_utils/src/msrvs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ msrv_aliases! {
4141
1,56,0 { CONST_FN_UNION }
4242
1,55,0 { SEEK_REWIND }
4343
1,54,0 { INTO_KEYS }
44-
1,53,0 { OR_PATTERNS, MANUAL_BITS, BTREE_MAP_RETAIN, BTREE_SET_RETAIN, ARRAY_INTO_ITERATOR }
44+
1,53,0 { OR_PATTERNS, INTEGER_BITS, BTREE_MAP_RETAIN, BTREE_SET_RETAIN, ARRAY_INTO_ITERATOR }
4545
1,52,0 { STR_SPLIT_ONCE, REM_EUCLID_CONST }
4646
1,51,0 { BORROW_AS_PTR, SEEK_FROM_CURRENT, UNSIGNED_ABS }
4747
1,50,0 { BOOL_THEN, CLAMP, SLICE_FILL }

0 commit comments

Comments
 (0)