1
1
error: safe function's docs have unnecessary `# Safety` section
2
- --> $DIR/doc_unnecessary_unsafe .rs:18 :1
2
+ --> $DIR/unnecessary_unsafety_doc .rs:19 :1
3
3
|
4
4
LL | pub fn apocalypse(universe: &mut ()) {
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::unnecessary-safety-doc` implied by `-D warnings`
8
8
9
9
error: safe function's docs have unnecessary `# Safety` section
10
- --> $DIR/doc_unnecessary_unsafe .rs:44 :5
10
+ --> $DIR/unnecessary_unsafety_doc .rs:45 :5
11
11
|
12
12
LL | pub fn republished() {
13
13
| ^^^^^^^^^^^^^^^^^^^^
14
14
15
15
error: safe function's docs have unnecessary `# Safety` section
16
- --> $DIR/doc_unnecessary_unsafe .rs:57 :5
16
+ --> $DIR/unnecessary_unsafety_doc .rs:58 :5
17
17
|
18
18
LL | fn documented(self);
19
19
| ^^^^^^^^^^^^^^^^^^^^
20
20
21
21
error: docs for safe trait have unnecessary `# Safety` section
22
- --> $DIR/doc_unnecessary_unsafe .rs:67 :1
22
+ --> $DIR/unnecessary_unsafety_doc .rs:68 :1
23
23
|
24
24
LL | pub trait DocumentedSafeTrait {
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
26
27
27
error: safe function's docs have unnecessary `# Safety` section
28
- --> $DIR/doc_unnecessary_unsafe .rs:95 :5
28
+ --> $DIR/unnecessary_unsafety_doc .rs:96 :5
29
29
|
30
30
LL | pub fn documented() -> Self {
31
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
33
33
error: safe function's docs have unnecessary `# Safety` section
34
- --> $DIR/doc_unnecessary_unsafe .rs:122 :9
34
+ --> $DIR/unnecessary_unsafety_doc .rs:123 :9
35
35
|
36
36
LL | pub fn drive() {
37
37
| ^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL | very_safe!();
42
42
= note: this error originates in the macro `very_safe` (in Nightly builds, run with -Z macro-backtrace for more info)
43
43
44
44
error: docs for safe trait have unnecessary `# Safety` section
45
- --> $DIR/doc_unnecessary_unsafe .rs:146 :1
45
+ --> $DIR/unnecessary_unsafety_doc .rs:147 :1
46
46
|
47
47
LL | pub trait DocumentedSafeTraitWithImplementationHeader {
48
48
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments