diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2015-07-14 01:03:24 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2015-07-14 21:48:43 +0300 |
| commit | 0c9e3dc75cf2b2d122af0596225594240ed254eb (patch) | |
| tree | 3a4f127656a15b2a53ce80a86e51c1776ae649a6 /src/libcore | |
| parent | 0fbcebaaec518a0a39f0b835cd52e9edfaba9cc2 (diff) | |
| download | rust-0c9e3dc75cf2b2d122af0596225594240ed254eb.tar.gz rust-0c9e3dc75cf2b2d122af0596225594240ed254eb.zip | |
Fix negate_unsigned feature gate check
This commit fixes the negate_unsigned feature gate to appropriately account for infered variables. This is technically a [breaking-change].
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/num.rs | 2 | ||||
| -rw-r--r-- | src/libcore/ops.rs | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/fmt/num.rs b/src/libcore/fmt/num.rs index fc49f87d107..ccdd23b868d 100644 --- a/src/libcore/fmt/num.rs +++ b/src/libcore/fmt/num.rs @@ -12,8 +12,6 @@ // FIXME: #6220 Implement floating point formatting -#![allow(unsigned_negation)] - use prelude::*; use fmt; diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 76d3c1df159..c2a9b8c8308 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -517,7 +517,6 @@ pub trait Neg { macro_rules! neg_impl_core { ($id:ident => $body:expr, $($t:ty)*) => ($( #[stable(feature = "rust1", since = "1.0.0")] - #[allow(unsigned_negation)] impl Neg for $t { #[stable(feature = "rust1", since = "1.0.0")] type Output = $t; |
