]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/doc_unsafe.stderr
Rollup merge of #102110 - CleanCut:migrate_rustc_passes_diagnostics, r=davidtwco
[rust.git] / src / tools / clippy / tests / ui / doc_unsafe.stderr
1 error: unsafe function's docs miss `# Safety` section
2   --> $DIR/doc_unsafe.rs:9:1
3    |
4 LL | / pub unsafe fn destroy_the_planet() {
5 LL | |     unimplemented!();
6 LL | | }
7    | |_^
8    |
9    = note: `-D clippy::missing-safety-doc` implied by `-D warnings`
10
11 error: unsafe function's docs miss `# Safety` section
12   --> $DIR/doc_unsafe.rs:32:5
13    |
14 LL | /     pub unsafe fn republished() {
15 LL | |         unimplemented!();
16 LL | |     }
17    | |_____^
18
19 error: unsafe function's docs miss `# Safety` section
20   --> $DIR/doc_unsafe.rs:40:5
21    |
22 LL |     unsafe fn woefully_underdocumented(self);
23    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: docs for unsafe trait missing `# Safety` section
26   --> $DIR/doc_unsafe.rs:46:1
27    |
28 LL | / pub unsafe trait UnsafeTrait {
29 LL | |     fn method();
30 LL | | }
31    | |_^
32
33 error: unsafe function's docs miss `# Safety` section
34   --> $DIR/doc_unsafe.rs:76:5
35    |
36 LL | /     pub unsafe fn more_undocumented_unsafe() -> Self {
37 LL | |         unimplemented!();
38 LL | |     }
39    | |_____^
40
41 error: unsafe function's docs miss `# Safety` section
42   --> $DIR/doc_unsafe.rs:92:9
43    |
44 LL | /         pub unsafe fn whee() {
45 LL | |             unimplemented!()
46 LL | |         }
47    | |_________^
48 ...
49 LL |   very_unsafe!();
50    |   -------------- in this macro invocation
51    |
52    = note: this error originates in the macro `very_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54 error: aborting due to 6 previous errors
55