11error: 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 |
44LL | / pub fn unwrap() {
55LL | | let result = Err("Hi");
@@ -9,43 +9,43 @@ LL | | }
99 |
1010 = note: `-D clippy::missing-panics-doc` implied by `-D warnings`
1111note: first possible panic found here
12- --> $DIR/doc_panics .rs:9:5
12+ --> $DIR/missing_panics_doc .rs:9:5
1313 |
1414LL | result.unwrap()
1515 | ^^^^^^^^^^^^^^^
1616
1717error: 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 |
2020LL | / pub fn panic() {
2121LL | | panic!("This function panics")
2222LL | | }
2323 | |_^
2424 |
2525note: first possible panic found here
26- --> $DIR/doc_panics .rs:14:5
26+ --> $DIR/missing_panics_doc .rs:14:5
2727 |
2828LL | 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
3232error: 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 |
3535LL | / pub fn todo() {
3636LL | | todo!()
3737LL | | }
3838 | |_^
3939 |
4040note: first possible panic found here
41- --> $DIR/doc_panics .rs:19:5
41+ --> $DIR/missing_panics_doc .rs:19:5
4242 |
4343LL | todo!()
4444 | ^^^^^^^
4545 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4646
4747error: 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 |
5050LL | / pub fn inner_body(opt: Option<u32>) {
5151LL | | opt.map(|x| {
@@ -57,22 +57,22 @@ LL | | }
5757 | |_^
5858 |
5959note: first possible panic found here
60- --> $DIR/doc_panics .rs:26:13
60+ --> $DIR/missing_panics_doc .rs:26:13
6161 |
6262LL | panic!()
6363 | ^^^^^^^^
6464 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6565
6666error: 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 |
6969LL | / pub fn unreachable_and_panic() {
7070LL | | if true { unreachable!() } else { panic!() }
7171LL | | }
7272 | |_^
7373 |
7474note: first possible panic found here
75- --> $DIR/doc_panics .rs:33:39
75+ --> $DIR/missing_panics_doc .rs:33:39
7676 |
7777LL | if true { unreachable!() } else { panic!() }
7878 | ^^^^^^^^
0 commit comments