]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unsafe_removed_from_name.rs
iterate List by value
[rust.git] / tests / ui / unsafe_removed_from_name.rs
index 7ff20223bd2c376ca80e79b122eb0b38b3dc7967..a1f616733bd920a277f43afb1e9ce8bdfd865cc3 100644 (file)
@@ -1,21 +1,17 @@
-#![feature(plugin)]
-#![plugin(clippy)]
 #![allow(unused_imports)]
 #![allow(dead_code)]
-#![deny(unsafe_removed_from_name)]
-
-use std::cell::{UnsafeCell as TotallySafeCell};
+#![warn(clippy::unsafe_removed_from_name)]
 
+use std::cell::UnsafeCell as TotallySafeCell;
 
 use std::cell::UnsafeCell as TotallySafeCellAgain;
 
-
 // Shouldn't error
-use std::cell::{UnsafeCell as SuperDangerousUnsafeCell};
-use std::cell::{UnsafeCell as Dangerunsafe};
-use std::cell::UnsafeCell as Bombsawayunsafe;
-use std::cell::{RefCell as ProbablyNotUnsafe};
+use std::cell::RefCell as ProbablyNotUnsafe;
 use std::cell::RefCell as RefCellThatCantBeUnsafe;
+use std::cell::UnsafeCell as SuperDangerousUnsafeCell;
+use std::cell::UnsafeCell as Dangerunsafe;
+use std::cell::UnsafeCell as Bombsawayunsafe;
 
 mod mod_with_some_unsafe_things {
     pub struct Safe {}
@@ -24,7 +20,6 @@ pub struct Unsafe {}
 
 use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
 
-
 // Shouldn't error
 use mod_with_some_unsafe_things::Safe as IPromiseItsSafeThisTime;
 use mod_with_some_unsafe_things::Unsafe as SuperUnsafeModThing;