about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-02-08 09:35:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-08 09:35:09 -0800
commit696a1da861a69c85ab14adf07321ee390610e38b (patch)
tree2de6eb505c192602594c2101adce6034f085bdbb
parent7fce5037a9040a3443f796c577b88d50ca5846a0 (diff)
downloadrust-696a1da861a69c85ab14adf07321ee390610e38b.tar.gz
rust-696a1da861a69c85ab14adf07321ee390610e38b.zip
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.
-rw-r--r--src/libcollections/lib.rs1
-rw-r--r--src/libcore/fmt/mod.rs6
-rw-r--r--src/libcore/mem.rs2
-rw-r--r--src/librustc/lib.rs2
-rw-r--r--src/librustc_llvm/lib.rs1
-rw-r--r--src/librustc_trans/lib.rs2
6 files changed, 0 insertions, 14 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs
index 4958f750166..b98637d92b4 100644
--- a/src/libcollections/lib.rs
+++ b/src/libcollections/lib.rs
@@ -26,7 +26,6 @@
        issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
        test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
 
-#![allow(trivial_casts)]
 #![cfg_attr(test, allow(deprecated))] // rand
 #![cfg_attr(not(stage0), deny(warnings))]
 
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)
     }
 }
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index fb6dac40798..a521700b84b 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -578,7 +578,5 @@ pub const POST_DROP_USIZE: usize = POST_DROP_U64 as usize;
 #[inline]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
-    // FIXME(#23542) Replace with type ascription.
-    #![allow(trivial_casts)]
     ptr::read(src as *const T as *const U)
 }
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs
index 54c12b67970..f88034d142a 100644
--- a/src/librustc/lib.rs
+++ b/src/librustc/lib.rs
@@ -43,8 +43,6 @@
 #![feature(time2)]
 #![cfg_attr(test, feature(test))]
 
-#![allow(trivial_casts)]
-
 extern crate arena;
 extern crate core;
 extern crate flate;
diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs
index 2ddc803fe49..059287ccb5e 100644
--- a/src/librustc_llvm/lib.rs
+++ b/src/librustc_llvm/lib.rs
@@ -12,7 +12,6 @@
 #![allow(non_camel_case_types)]
 #![allow(non_snake_case)]
 #![allow(dead_code)]
-#![allow(trivial_casts)]
 
 #![crate_name = "rustc_llvm"]
 #![unstable(feature = "rustc_private", issue = "27812")]
diff --git a/src/librustc_trans/lib.rs b/src/librustc_trans/lib.rs
index 9ab056a187b..27d6dbae28a 100644
--- a/src/librustc_trans/lib.rs
+++ b/src/librustc_trans/lib.rs
@@ -37,8 +37,6 @@
 #![feature(staged_api)]
 #![feature(unicode)]
 
-#![allow(trivial_casts)]
-
 extern crate arena;
 extern crate flate;
 extern crate getopts;