1
1
error: docs for function which may panic missing `# Panics` section
2
- --> $DIR/doc_panics .rs:7:1
2
+ --> $DIR/missing_panics_doc .rs:7:1
3
3
|
4
4
LL | / pub fn unwrap() {
5
5
LL | | let result = Err("Hi");
@@ -9,43 +9,43 @@ LL | | }
9
9
|
10
10
= note: `-D clippy::missing-panics-doc` implied by `-D warnings`
11
11
note: first possible panic found here
12
- --> $DIR/doc_panics .rs:9:5
12
+ --> $DIR/missing_panics_doc .rs:9:5
13
13
|
14
14
LL | result.unwrap()
15
15
| ^^^^^^^^^^^^^^^
16
16
17
17
error: docs for function which may panic missing `# Panics` section
18
- --> $DIR/doc_panics .rs:13:1
18
+ --> $DIR/missing_panics_doc .rs:13:1
19
19
|
20
20
LL | / pub fn panic() {
21
21
LL | | panic!("This function panics")
22
22
LL | | }
23
23
| |_^
24
24
|
25
25
note: first possible panic found here
26
- --> $DIR/doc_panics .rs:14:5
26
+ --> $DIR/missing_panics_doc .rs:14:5
27
27
|
28
28
LL | panic!("This function panics")
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
31
31
32
32
error: docs for function which may panic missing `# Panics` section
33
- --> $DIR/doc_panics .rs:18:1
33
+ --> $DIR/missing_panics_doc .rs:18:1
34
34
|
35
35
LL | / pub fn todo() {
36
36
LL | | todo!()
37
37
LL | | }
38
38
| |_^
39
39
|
40
40
note: first possible panic found here
41
- --> $DIR/doc_panics .rs:19:5
41
+ --> $DIR/missing_panics_doc .rs:19:5
42
42
|
43
43
LL | todo!()
44
44
| ^^^^^^^
45
45
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
46
46
47
47
error: docs for function which may panic missing `# Panics` section
48
- --> $DIR/doc_panics .rs:23:1
48
+ --> $DIR/missing_panics_doc .rs:23:1
49
49
|
50
50
LL | / pub fn inner_body(opt: Option<u32>) {
51
51
LL | | opt.map(|x| {
@@ -57,22 +57,22 @@ LL | | }
57
57
| |_^
58
58
|
59
59
note: first possible panic found here
60
- --> $DIR/doc_panics .rs:26:13
60
+ --> $DIR/missing_panics_doc .rs:26:13
61
61
|
62
62
LL | panic!()
63
63
| ^^^^^^^^
64
64
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
65
65
66
66
error: docs for function which may panic missing `# Panics` section
67
- --> $DIR/doc_panics .rs:32:1
67
+ --> $DIR/missing_panics_doc .rs:32:1
68
68
|
69
69
LL | / pub fn unreachable_and_panic() {
70
70
LL | | if true { unreachable!() } else { panic!() }
71
71
LL | | }
72
72
| |_^
73
73
|
74
74
note: first possible panic found here
75
- --> $DIR/doc_panics .rs:33:39
75
+ --> $DIR/missing_panics_doc .rs:33:39
76
76
|
77
77
LL | if true { unreachable!() } else { panic!() }
78
78
| ^^^^^^^^
0 commit comments