]> git.lizzy.rs Git - rust.git/blob - tests/ui/unsafe_removed_from_name.stderr
Ignore associated items in trait *implementations* when considering type complexity
[rust.git] / tests / ui / unsafe_removed_from_name.stderr
1 error: removed `unsafe` from the name of `UnsafeCell` in use as `TotallySafeCell`
2   --> $DIR/unsafe_removed_from_name.rs:5:1
3    |
4 LL | use std::cell::UnsafeCell as TotallySafeCell;
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::unsafe-removed-from-name` implied by `-D warnings`
8
9 error: removed `unsafe` from the name of `UnsafeCell` in use as `TotallySafeCellAgain`
10   --> $DIR/unsafe_removed_from_name.rs:7:1
11    |
12 LL | use std::cell::UnsafeCell as TotallySafeCellAgain;
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: removed `unsafe` from the name of `Unsafe` in use as `LieAboutModSafety`
16   --> $DIR/unsafe_removed_from_name.rs:21:1
17    |
18 LL | use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
19    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: aborting due to 3 previous errors
22