Skip to content

Commit 3458aba

Browse files
committed
Fix incremental builds of core by allowing unused attribute.
The same problem as in #65023 was introduced by #67657. This works around the current incrcomp issue with these attributes by allowing it here.
1 parent 760ce94 commit 3458aba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/num/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,7 @@ $EndFeature, "
14161416
```"),
14171417
#[stable(feature = "no_panic_abs", since = "1.13.0")]
14181418
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
1419+
#[allow(unused_attributes)]
14191420
#[allow_internal_unstable(const_if_match)]
14201421
#[inline]
14211422
pub const fn wrapping_abs(self) -> Self {
@@ -1709,6 +1710,7 @@ assert_eq!(", stringify!($SelfT), "::MIN.overflowing_neg(), (", stringify!($Self
17091710
#[inline]
17101711
#[stable(feature = "wrapping", since = "1.7.0")]
17111712
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
1713+
#[allow(unused_attributes)]
17121714
#[allow_internal_unstable(const_if_match)]
17131715
pub const fn overflowing_neg(self) -> (Self, bool) {
17141716
if self == Self::min_value() {
@@ -1997,6 +1999,7 @@ $EndFeature, "
19971999
```"),
19982000
#[stable(feature = "rust1", since = "1.0.0")]
19992001
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
2002+
#[allow(unused_attributes)]
20002003
#[allow_internal_unstable(const_if_match)]
20012004
#[inline]
20022005
#[rustc_inherit_overflow_checks]

0 commit comments

Comments
 (0)