1 error: docs for function which may panic missing `# Panics` section
2 --> $DIR/missing_panics_doc.rs:7:1
4 LL | / pub fn unwrap() {
5 LL | | let result = Err("Hi");
10 = note: `-D clippy::missing-panics-doc` implied by `-D warnings`
11 note: first possible panic found here
12 --> $DIR/missing_panics_doc.rs:9:5
17 error: docs for function which may panic missing `# Panics` section
18 --> $DIR/missing_panics_doc.rs:13:1
20 LL | / pub fn panic() {
21 LL | | panic!("This function panics")
25 note: first possible panic found here
26 --> $DIR/missing_panics_doc.rs:14:5
28 LL | panic!("This function panics")
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
32 error: docs for function which may panic missing `# Panics` section
33 --> $DIR/missing_panics_doc.rs:18:1
35 LL | / pub fn todo() {
40 note: first possible panic found here
41 --> $DIR/missing_panics_doc.rs:19:5
45 = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
47 error: docs for function which may panic missing `# Panics` section
48 --> $DIR/missing_panics_doc.rs:23:1
50 LL | / pub fn inner_body(opt: Option<u32>) {
59 note: first possible panic found here
60 --> $DIR/missing_panics_doc.rs:26:13
64 = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
66 error: docs for function which may panic missing `# Panics` section
67 --> $DIR/missing_panics_doc.rs:32:1
69 LL | / pub fn unreachable_and_panic() {
70 LL | | if true { unreachable!() } else { panic!() }
74 note: first possible panic found here
75 --> $DIR/missing_panics_doc.rs:33:39
77 LL | if true { unreachable!() } else { panic!() }
79 = note: this error originates in the macro `$crate::panic::panic_2015` (in Nightly builds, run with -Z macro-backtrace for more info)
81 error: docs for function which may panic missing `# Panics` section
82 --> $DIR/missing_panics_doc.rs:37:1
84 LL | / pub fn assert_eq() {
86 LL | | assert_eq!(x, 0);
90 note: first possible panic found here
91 --> $DIR/missing_panics_doc.rs:39:5
93 LL | assert_eq!(x, 0);
95 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
97 error: docs for function which may panic missing `# Panics` section
98 --> $DIR/missing_panics_doc.rs:43:1
100 LL | / pub fn assert_ne() {
102 LL | | assert_ne!(x, 0);
106 note: first possible panic found here
107 --> $DIR/missing_panics_doc.rs:45:5
109 LL | assert_ne!(x, 0);
111 = note: this error originates in the macro `assert_ne` (in Nightly builds, run with -Z macro-backtrace for more info)
113 error: aborting due to 7 previous errors