]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/doc_unsafe.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::missing-safety-doc` implied by `-D warnings`
8
9 error: unsafe function's docs miss `# Safety` section
10   --> $DIR/doc_unsafe.rs:32:5
11    |
12 LL |     pub unsafe fn republished() {
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: unsafe function's docs miss `# Safety` section
16   --> $DIR/doc_unsafe.rs:40:5
17    |
18 LL |     unsafe fn woefully_underdocumented(self);
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: docs for unsafe trait missing `# Safety` section
22   --> $DIR/doc_unsafe.rs:46:1
23    |
24 LL | pub unsafe trait UnsafeTrait {
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: unsafe function's docs miss `# Safety` section
28   --> $DIR/doc_unsafe.rs:76:5
29    |
30 LL |     pub unsafe fn more_undocumented_unsafe() -> Self {
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: unsafe function's docs miss `# Safety` section
34   --> $DIR/doc_unsafe.rs:92:9
35    |
36 LL |         pub unsafe fn whee() {
37    |         ^^^^^^^^^^^^^^^^^^^^
38 ...
39 LL | very_unsafe!();
40    | -------------- in this macro invocation
41    |
42    = note: this error originates in the macro `very_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)
43
44 error: aborting due to 6 previous errors
45