1 error: unsafe function's docs miss `# Safety` section
2 --> $DIR/doc_unsafe.rs:9:1
4 LL | pub unsafe fn destroy_the_planet() {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::missing-safety-doc` implied by `-D warnings`
9 error: unsafe function's docs miss `# Safety` section
10 --> $DIR/doc_unsafe.rs:32:5
12 LL | pub unsafe fn republished() {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: unsafe function's docs miss `# Safety` section
16 --> $DIR/doc_unsafe.rs:40:5
18 LL | unsafe fn woefully_underdocumented(self);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: docs for unsafe trait missing `# Safety` section
22 --> $DIR/doc_unsafe.rs:46:1
24 LL | pub unsafe trait UnsafeTrait {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: unsafe function's docs miss `# Safety` section
28 --> $DIR/doc_unsafe.rs:76:5
30 LL | pub unsafe fn more_undocumented_unsafe() -> Self {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: unsafe function's docs miss `# Safety` section
34 --> $DIR/doc_unsafe.rs:92:9
36 LL | pub unsafe fn whee() {
37 | ^^^^^^^^^^^^^^^^^^^^
40 | -------------- in this macro invocation
42 = note: this error originates in the macro `very_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)
44 error: aborting due to 6 previous errors