diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-09 00:22:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-09 00:22:08 +0100 |
| commit | 11f0013378f8a7ec7a2ca3e09afd78e1397273e7 (patch) | |
| tree | 24730407abfa47806cde3cce7184e96bd699937c /src | |
| parent | 1a0b2a5aaad290df933ab49f0932baa6a4028d08 (diff) | |
| parent | 3458aba0f98435905f642c3ab4b8760c890bfe66 (diff) | |
| download | rust-11f0013378f8a7ec7a2ca3e09afd78e1397273e7.tar.gz rust-11f0013378f8a7ec7a2ca3e09afd78e1397273e7.zip | |
Rollup merge of #67884 - anp:allow-unused-const-attr, r=oli-obk
Fix incremental builds of core by allowing unused attribute. I *think* that the same problem as in https://github.com/rust-lang/rust/issues/65023 was introduced by https://github.com/rust-lang/rust/pull/67657. This works around the current incrcomp issue with these attributes by allowing it here. This resolves the near-term issue for me, at least.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/num/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index b6b4a46e0b8..c39f6fb98c1 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -1416,6 +1416,7 @@ $EndFeature, " ```"), #[stable(feature = "no_panic_abs", since = "1.13.0")] #[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")] + #[allow(unused_attributes)] #[allow_internal_unstable(const_if_match)] #[inline] pub const fn wrapping_abs(self) -> Self { @@ -1709,6 +1710,7 @@ assert_eq!(", stringify!($SelfT), "::MIN.overflowing_neg(), (", stringify!($Self #[inline] #[stable(feature = "wrapping", since = "1.7.0")] #[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")] + #[allow(unused_attributes)] #[allow_internal_unstable(const_if_match)] pub const fn overflowing_neg(self) -> (Self, bool) { if self == Self::min_value() { @@ -1997,6 +1999,7 @@ $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] #[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")] + #[allow(unused_attributes)] #[allow_internal_unstable(const_if_match)] #[inline] #[rustc_inherit_overflow_checks] |
