about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui-cargo/undocumented_unsafe_blocks/fail/Cargo.stderr
blob: 59a7146ac90fdb079c5722dd20fffd58becd3615 (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
error: module has unnecessary safety comment
 --> src/main.rs:2:1
  |
2 | mod x {}
  | ^^^^^^^^
  |
help: consider removing the safety comment
 --> src/main.rs:1:1
  |
1 | // SAFETY: ...
  | ^^^^^^^^^^^^^^
  = note: requested on the command line with `-D clippy::unnecessary-safety-comment`

error: module has unnecessary safety comment
 --> src/main.rs:5:1
  |
5 | mod y {}
  | ^^^^^^^^
  |
help: consider removing the safety comment
 --> src/main.rs:4:1
  |
4 | // SAFETY: ...
  | ^^^^^^^^^^^^^^

error: could not compile `undocumented_unsafe_blocks` (bin "undocumented_unsafe_blocks") due to 2 previous errors