52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
error: safe function's docs have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:18:1
|
|
|
|
|
LL | pub fn apocalypse(universe: &mut ()) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::unnecessary-safety-doc` implied by `-D warnings`
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:44:5
|
|
|
|
|
LL | pub fn republished() {
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:57:5
|
|
|
|
|
LL | fn documented(self);
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: docs for safe trait have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:67:1
|
|
|
|
|
LL | pub trait DocumentedSafeTrait {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:95:5
|
|
|
|
|
LL | pub fn documented() -> Self {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:122:9
|
|
|
|
|
LL | pub fn drive() {
|
|
| ^^^^^^^^^^^^^^
|
|
...
|
|
LL | very_safe!();
|
|
| ------------ in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `very_safe` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: docs for safe trait have unnecessary `# Safety` section
|
|
--> $DIR/doc_unnecessary_unsafe.rs:146:1
|
|
|
|
|
LL | pub trait DocumentedSafeTraitWithImplementationHeader {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 7 previous errors
|
|
|