1 error: docs for function which may panic missing `# Panics` section
2 --> $DIR/missing_panics_doc.rs:6: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:8:5
17 error: docs for function which may panic missing `# Panics` section
18 --> $DIR/missing_panics_doc.rs:12: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:13:5
28 LL | panic!("This function panics")
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: docs for function which may panic missing `# Panics` section
32 --> $DIR/missing_panics_doc.rs:17:1
34 LL | / pub fn todo() {
39 note: first possible panic found here
40 --> $DIR/missing_panics_doc.rs:18:5
45 error: docs for function which may panic missing `# Panics` section
46 --> $DIR/missing_panics_doc.rs:22:1
48 LL | / pub fn inner_body(opt: Option<u32>) {
57 note: first possible panic found here
58 --> $DIR/missing_panics_doc.rs:25:13
63 error: docs for function which may panic missing `# Panics` section
64 --> $DIR/missing_panics_doc.rs:31:1
66 LL | / pub fn unreachable_and_panic() {
67 LL | | if true { unreachable!() } else { panic!() }
71 note: first possible panic found here
72 --> $DIR/missing_panics_doc.rs:32:39
74 LL | if true { unreachable!() } else { panic!() }
77 error: docs for function which may panic missing `# Panics` section
78 --> $DIR/missing_panics_doc.rs:36:1
80 LL | / pub fn assert_eq() {
82 LL | | assert_eq!(x, 0);
86 note: first possible panic found here
87 --> $DIR/missing_panics_doc.rs:38:5
89 LL | assert_eq!(x, 0);
92 error: docs for function which may panic missing `# Panics` section
93 --> $DIR/missing_panics_doc.rs:42:1
95 LL | / pub fn assert_ne() {
97 LL | | assert_ne!(x, 0);
101 note: first possible panic found here
102 --> $DIR/missing_panics_doc.rs:44:5
104 LL | assert_ne!(x, 0);
107 error: aborting due to 7 previous errors