mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
34 lines
888 B
Text
34 lines
888 B
Text
error: unsafe function's docs miss `# Safety` section
|
|
--> $DIR/doc_unsafe.rs:2:1
|
|
|
|
|
LL | / pub unsafe fn destroy_the_planet() {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= note: `-D clippy::missing-safety-doc` implied by `-D warnings`
|
|
|
|
error: unsafe function's docs miss `# Safety` section
|
|
--> $DIR/doc_unsafe.rs:25:5
|
|
|
|
|
LL | / pub unsafe fn republished() {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: unsafe function's docs miss `# Safety` section
|
|
--> $DIR/doc_unsafe.rs:33:5
|
|
|
|
|
LL | unsafe fn woefully_underdocumented(self);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: unsafe function's docs miss `# Safety` section
|
|
--> $DIR/doc_unsafe.rs:52:5
|
|
|
|
|
LL | / pub unsafe fn more_undocumented_unsafe() -> Self {
|
|
LL | | unimplemented!();
|
|
LL | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|