about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/unsafe_removed_from_name.stderr
blob: 5268c16ec9ba595051337f82b2956b3875ce964f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
error: removed `unsafe` from the name of `UnsafeCell` in use as `TotallySafeCell`
  --> tests/ui/unsafe_removed_from_name.rs:5:1
   |
LL | use std::cell::UnsafeCell as TotallySafeCell;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::unsafe-removed-from-name` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unsafe_removed_from_name)]`

error: removed `unsafe` from the name of `UnsafeCell` in use as `TotallySafeCellAgain`
  --> tests/ui/unsafe_removed_from_name.rs:8:1
   |
LL | use std::cell::UnsafeCell as TotallySafeCellAgain;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: removed `unsafe` from the name of `Unsafe` in use as `LieAboutModSafety`
  --> tests/ui/unsafe_removed_from_name.rs:27:1
   |
LL | use mod_with_some_unsafe_things::Unsafe as LieAboutModSafety;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: removed `unsafe` from the name of `Unsafe` in use as `A`
  --> tests/ui/unsafe_removed_from_name.rs:31:1
   |
LL | use mod_with_some_unsafe_things::{Unsafe as A, Unsafe as B};
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: removed `unsafe` from the name of `Unsafe` in use as `B`
  --> tests/ui/unsafe_removed_from_name.rs:31:1
   |
LL | use mod_with_some_unsafe_things::{Unsafe as A, Unsafe as B};
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 5 previous errors