Skip to content

Commit 83590ac

Browse files
committed
fix legacy numeric constant diag items
- missed syms for usize/isize - missed diag items on unsigned integers
1 parent 768408a commit 83590ac

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

compiler/rustc_span/src/symbol.rs

+10
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,11 @@ symbols! {
10001000
is_val_statically_known,
10011001
isa_attribute,
10021002
isize,
1003+
isize_legacy_const_max,
1004+
isize_legacy_const_min,
1005+
isize_legacy_fn_max_value,
1006+
isize_legacy_fn_min_value,
1007+
isize_legacy_mod,
10031008
issue,
10041009
issue_5723_bootstrap,
10051010
issue_tracker_base_url,
@@ -1910,6 +1915,11 @@ symbols! {
19101915
used_with_arg,
19111916
using,
19121917
usize,
1918+
usize_legacy_const_max,
1919+
usize_legacy_const_min,
1920+
usize_legacy_fn_max_value,
1921+
usize_legacy_fn_min_value,
1922+
usize_legacy_mod,
19131923
va_arg,
19141924
va_copy,
19151925
va_end,

library/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)