clean tests/ui/unsafe_removed_from_name.rs

Cleaning the empty lines for clarity.
This commit is contained in:
Luis de Bethencourt 2017-05-11 16:02:19 +01:00
parent cf7303d217
commit d0b932fb53
2 changed files with 6 additions and 9 deletions

View file

@ -6,10 +6,8 @@
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};
@ -24,7 +22,6 @@ mod mod_with_some_unsafe_things {
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;

View file

@ -11,15 +11,15 @@ note: lint level defined here
| ^^^^^^^^^^^^^^^^^^^^^^^^
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