Skip to content

Commit 1f95940

Browse files
committed
Fix inconsistent test name
1 parent c07103b commit 1f95940

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
File renamed without changes.

tests/ui/doc_panics.stderr renamed to tests/ui/missing_panics_doc.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | / pub fn unwrap() {
55
LL | | let result = Err("Hi");
@@ -9,43 +9,43 @@ LL | | }
99
|
1010
= note: `-D clippy::missing-panics-doc` implied by `-D warnings`
1111
note: first possible panic found here
12-
--> $DIR/doc_panics.rs:9:5
12+
--> $DIR/missing_panics_doc.rs:9:5
1313
|
1414
LL | result.unwrap()
1515
| ^^^^^^^^^^^^^^^
1616

1717
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
1919
|
2020
LL | / pub fn panic() {
2121
LL | | panic!("This function panics")
2222
LL | | }
2323
| |_^
2424
|
2525
note: first possible panic found here
26-
--> $DIR/doc_panics.rs:14:5
26+
--> $DIR/missing_panics_doc.rs:14:5
2727
|
2828
LL | panic!("This function panics")
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3131

3232
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
3434
|
3535
LL | / pub fn todo() {
3636
LL | | todo!()
3737
LL | | }
3838
| |_^
3939
|
4040
note: first possible panic found here
41-
--> $DIR/doc_panics.rs:19:5
41+
--> $DIR/missing_panics_doc.rs:19:5
4242
|
4343
LL | todo!()
4444
| ^^^^^^^
4545
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4646

4747
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
4949
|
5050
LL | / pub fn inner_body(opt: Option<u32>) {
5151
LL | | opt.map(|x| {
@@ -57,22 +57,22 @@ LL | | }
5757
| |_^
5858
|
5959
note: first possible panic found here
60-
--> $DIR/doc_panics.rs:26:13
60+
--> $DIR/missing_panics_doc.rs:26:13
6161
|
6262
LL | panic!()
6363
| ^^^^^^^^
6464
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6565

6666
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
6868
|
6969
LL | / pub fn unreachable_and_panic() {
7070
LL | | if true { unreachable!() } else { panic!() }
7171
LL | | }
7272
| |_^
7373
|
7474
note: first possible panic found here
75-
--> $DIR/doc_panics.rs:33:39
75+
--> $DIR/missing_panics_doc.rs:33:39
7676
|
7777
LL | if true { unreachable!() } else { panic!() }
7878
| ^^^^^^^^

0 commit comments

Comments
 (0)