2022-11-21 19:34:47 +00:00
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:19:1
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | pub fn apocalypse(universe: &mut ()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unnecessary-safety-doc` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_doc)]`
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:45:5
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | pub fn republished() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:58:5
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | fn documented(self);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: docs for safe trait have unnecessary `# Safety` section
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:68:1
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | pub trait DocumentedSafeTrait {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:96:5
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | pub fn documented() -> Self {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: safe function's docs have unnecessary `# Safety` section
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:123:9
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
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
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/unnecessary_unsafety_doc.rs:151:1
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | pub trait DocumentedSafeTraitWithImplementationHeader {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|