3 #![allow(unused_imports)]
5 #![deny(unsafe_removed_from_name)]
7 use std::cell::{UnsafeCell as TotallySafeCell};
8 //~^ ERROR removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCell`
10 use std::cell::UnsafeCell as TotallySafeCellAgain;
11 //~^ ERROR removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCellAgain`
14 use std::cell::{UnsafeCell as SuperDangerousUnsafeCell};
15 use std::cell::{UnsafeCell as Dangerunsafe};
16 use std::cell::UnsafeCell as Bombsawayunsafe;
17 use std::cell::{RefCell as ProbablyNotUnsafe};
18 use std::cell::RefCell as RefCellThatCantBeUnsafe;
20 mod mod_with_some_unsafe_things {
25 use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
26 //~^ ERROR removed "unsafe" from the name of `Unsafe` in use as `LieAboutModSafety`
29 use mod_with_some_unsafe_things::Safe as IPromiseItsSafeThisTime;
30 use mod_with_some_unsafe_things::Unsafe as SuperUnsafeModThing;