blob: efac6cd64c878ec1628fa5055ab2e58649b554c9 [file]
error: unsafe function's docs are missing a `# Safety` section
--> tests/ui/doc_unsafe.rs:11:1
|
LL | pub unsafe fn destroy_the_planet() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::missing-safety-doc` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::missing_safety_doc)]`
error: unsafe function's docs are missing a `# Safety` section
--> tests/ui/doc_unsafe.rs:35:5
|
LL | pub unsafe fn republished() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: docs for unsafe field missing `# Safety` section
--> tests/ui/doc_unsafe.rs:46:5
|
LL | unsafe field: u8,
| ^^^^^^^^^^^^^^^^
error: docs for unsafe field missing `# Safety` section
--> tests/ui/doc_unsafe.rs:52:9
|
LL | unsafe field: u8,
| ^^^^^^^^^^^^^^^^
error: docs for unsafe field missing `# Safety` section
--> tests/ui/doc_unsafe.rs:58:5
|
LL | unsafe field: u8,
| ^^^^^^^^^^^^^^^^
error: field with `# Safety` documentation is not marked unsafe
--> tests/ui/doc_unsafe.rs:64:5
|
LL | field: u8,
| ^^^^^^^^^
|
= help: if the field has safety invariants, mark it `unsafe`
note: the lint level is defined here
--> tests/ui/doc_unsafe.rs:3:9
|
LL | #![deny(clippy::unnecessary_safety_doc)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: field with `# Safety` documentation is not marked unsafe
--> tests/ui/doc_unsafe.rs:71:9
|
LL | field: u8,
| ^^^^^^^^^
|
= help: if the field has safety invariants, mark it `unsafe`
error: field with `# Safety` documentation is not marked unsafe
--> tests/ui/doc_unsafe.rs:78:5
|
LL | field: u8,
| ^^^^^^^^^
|
= help: if the field has safety invariants, mark it `unsafe`
error: unsafe function's docs are missing a `# Safety` section
--> tests/ui/doc_unsafe.rs:83:5
|
LL | unsafe fn woefully_underdocumented(self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: docs for unsafe trait missing `# Safety` section
--> tests/ui/doc_unsafe.rs:90:1
|
LL | pub unsafe trait UnsafeTrait {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: unsafe function's docs are missing a `# Safety` section
--> tests/ui/doc_unsafe.rs:121:5
|
LL | pub unsafe fn more_undocumented_unsafe() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: unsafe function's docs are missing a `# Safety` section
--> tests/ui/doc_unsafe.rs:138:9
|
LL | pub unsafe fn whee() {
| ^^^^^^^^^^^^^^^^^^^^
...
LL | very_unsafe!();
| -------------- in this macro invocation
|
= note: this error originates in the macro `very_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 12 previous errors