]> 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 41b98975d5320260819eb816d00ffc20d9ea9792..a1f616733bd920a277f43afb1e9ce8bdfd865cc3 100644 (file)
@@ -1,19 +1,17 @@
-#![feature(tool_lints)]
-
 #![allow(unused_imports)]
 #![allow(dead_code)]
 #![warn(clippy::unsafe_removed_from_name)]
 
-use std::cell::{UnsafeCell as TotallySafeCell};
+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 {}