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 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;
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCellAgain`
- --> $DIR/unsafe_removed_from_name.rs:10:1
- |
-10 | use std::cell::UnsafeCell as TotallySafeCellAgain;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ --> $DIR/unsafe_removed_from_name.rs:9:1
+ |
+9 | use std::cell::UnsafeCell as TotallySafeCellAgain;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: removed "unsafe" from the name of `Unsafe` in use as `LieAboutModSafety`
- --> $DIR/unsafe_removed_from_name.rs:25:1
+ --> $DIR/unsafe_removed_from_name.rs:23:1
|
-25 | use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
+23 | use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors