diff options
| author | dswij <dharmasw@outlook.com> | 2025-03-08 05:14:11 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-08 05:14:11 +0000 |
| commit | 19930f95f50d5f32bd02e1d4cdd550fa2a1f56ef (patch) | |
| tree | fea42d50c91999c4bbbe185eb6b44cf3315b14bb | |
| parent | cee9abf10c28711e9a18cf54a5d89b7b5e92f558 (diff) | |
| parent | 6537f93b8b9c89d82e7339eed3821119e878c6c7 (diff) | |
| download | rust-19930f95f50d5f32bd02e1d4cdd550fa2a1f56ef.tar.gz rust-19930f95f50d5f32bd02e1d4cdd550fa2a1f56ef.zip | |
rename the MSRV alias `MANUAL_DIV_CEIL` to `DIV_CEIL` (#14329)
I renamed the MSRV alias `MANUAL_DIV_CEIL` to `DIV_CEIL` in #14263, as MSRV aliases should represent their capability rather than the lint name. However, it seems this change was mistakenly overwritten in #14022. changelog: none
| -rw-r--r-- | clippy_lints/src/manual_div_ceil.rs | 2 | ||||
| -rw-r--r-- | clippy_utils/src/msrvs.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/manual_div_ceil.rs b/clippy_lints/src/manual_div_ceil.rs index 9c1419175d5..9944c4f8804 100644 --- a/clippy_lints/src/manual_div_ceil.rs +++ b/clippy_lints/src/manual_div_ceil.rs @@ -64,7 +64,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualDivCeil { && check_int_ty_and_feature(cx, div_lhs) && check_int_ty_and_feature(cx, div_rhs) && let ExprKind::Binary(inner_op, inner_lhs, inner_rhs) = div_lhs.kind - && self.msrv.meets(cx, msrvs::MANUAL_DIV_CEIL) + && self.msrv.meets(cx, msrvs::DIV_CEIL) { // (x + (y - 1)) / y if let ExprKind::Binary(sub_op, sub_lhs, sub_rhs) = inner_rhs.kind diff --git a/clippy_utils/src/msrvs.rs b/clippy_utils/src/msrvs.rs index 5bb2b12988a..523e7e5aaa6 100644 --- a/clippy_utils/src/msrvs.rs +++ b/clippy_utils/src/msrvs.rs @@ -33,7 +33,7 @@ msrv_aliases! { 1,76,0 { PTR_FROM_REF, OPTION_RESULT_INSPECT } 1,75,0 { OPTION_AS_SLICE } 1,74,0 { REPR_RUST, IO_ERROR_OTHER } - 1,73,0 { MANUAL_DIV_CEIL } + 1,73,0 { DIV_CEIL } 1,71,0 { TUPLE_ARRAY_CONVERSIONS, BUILD_HASHER_HASH_ONE } 1,70,0 { OPTION_RESULT_IS_VARIANT_AND, BINARY_HEAP_RETAIN } 1,68,0 { PATH_MAIN_SEPARATOR_STR } |
