mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
35 lines
888 B
Plaintext
35 lines
888 B
Plaintext
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
|
|
|