Skip to content

Commit 17eea62

Browse files
authored
Rollup merge of rust-lang#122271 - pitaj:diag_items-legacy_numeric_constants, r=Nilstrieb
Fix legacy numeric constant diag items - missed syms for usize/isize - missed diag items on unsigned integers For rust-lang/rust-clippy#12312 r? ```@Nilstrieb``` Follow-up to rust-lang#121272, rust-lang#121361, rust-lang#121667 This should be the last one 🤞 Sorry!
2 parents 162704a + a4b58b3 commit 17eea62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/num/uint_macros.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2972,6 +2972,7 @@ macro_rules! uint_impl {
29722972
#[inline(always)]
29732973
#[rustc_const_stable(feature = "const_max_value", since = "1.32.0")]
29742974
#[deprecated(since = "TBD", note = "replaced by the `MIN` associated constant on this type")]
2975+
#[rustc_diagnostic_item = concat!(stringify!($SelfT), "_legacy_fn_min_value")]
29752976
pub const fn min_value() -> Self { Self::MIN }
29762977

29772978
/// New code should prefer to use
@@ -2983,6 +2984,7 @@ macro_rules! uint_impl {
29832984
#[inline(always)]
29842985
#[rustc_const_stable(feature = "const_max_value", since = "1.32.0")]
29852986
#[deprecated(since = "TBD", note = "replaced by the `MAX` associated constant on this type")]
2987+
#[rustc_diagnostic_item = concat!(stringify!($SelfT), "_legacy_fn_max_value")]
29862988
pub const fn max_value() -> Self { Self::MAX }
29872989
}
29882990
}

0 commit comments

Comments
 (0)