diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-02-08 09:35:09 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-02-08 09:35:09 -0800 |
| commit | 696a1da861a69c85ab14adf07321ee390610e38b (patch) | |
| tree | 2de6eb505c192602594c2101adce6034f085bdbb /src/libcore/fmt | |
| parent | 7fce5037a9040a3443f796c577b88d50ca5846a0 (diff) | |
Remove old #[allow(trivial_casts)] annotations
These were added a long time ago but we long since switched the lint back to allow-by-default, so these annotations shouldn't be necessary.
Diffstat (limited to 'src/libcore/fmt')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 37f03d731dc..e5b645a2938 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -1414,8 +1414,6 @@ impl<T> Pointer for *const T { #[stable(feature = "rust1", since = "1.0.0")] impl<T> Pointer for *mut T { fn fmt(&self, f: &mut Formatter) -> Result { - // FIXME(#23542) Replace with type ascription. - #![allow(trivial_casts)] Pointer::fmt(&(*self as *const T), f) } } @@ -1423,8 +1421,6 @@ impl<T> Pointer for *mut T { #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T> Pointer for &'a T { fn fmt(&self, f: &mut Formatter) -> Result { - // FIXME(#23542) Replace with type ascription. - #![allow(trivial_casts)] Pointer::fmt(&(*self as *const T), f) } } @@ -1432,8 +1428,6 @@ impl<'a, T> Pointer for &'a T { #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T> Pointer for &'a mut T { fn fmt(&self, f: &mut Formatter) -> Result { - // FIXME(#23542) Replace with type ascription. - #![allow(trivial_casts)] Pointer::fmt(&(&**self as *const T), f) } } |
