]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/unsafe_removed_from_name.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 15:02:19 +0000 (16:02 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 15:22:32 +0000 (16:22 +0100)
Cleaning the empty lines for clarity.

tests/ui/unsafe_removed_from_name.rs
tests/ui/unsafe_removed_from_name.stderr

index 7ff20223bd2c376ca80e79b122eb0b38b3dc7967..98b9841c00a67452ec352367bb95e81550f3c138 100644 (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 @@ 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;
index 4080353efbd70151e36673a026baab2b55ef314a..de34d88e503da087385884aaa7fdb8cc57bca132 100644 (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