rust-clippy/clippy_tests/examples/unsafe_removed_from_name.stderr

30 lines
1.1 KiB
Text
Raw Normal View History

error: removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCell`
--> examples/unsafe_removed_from_name.rs:7:1
|
7 | use std::cell::{UnsafeCell as TotallySafeCell};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unsafe-removed-from-name` implied by `-D warnings`
error: removed "unsafe" from the name of `UnsafeCell` in use as `TotallySafeCellAgain`
--> examples/unsafe_removed_from_name.rs:9:1
|
9 | use std::cell::UnsafeCell as TotallySafeCellAgain;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unsafe-removed-from-name` implied by `-D warnings`
error: removed "unsafe" from the name of `Unsafe` in use as `LieAboutModSafety`
--> examples/unsafe_removed_from_name.rs:23:1
|
23 | use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unsafe-removed-from-name` implied by `-D warnings`
error: aborting due to 3 previous errors
error: Could not compile `clippy_tests`.
To learn more, run the command again with --verbose.