1 #![warn(clippy::missing_panics_doc)]
2 #![allow(clippy::option_map_unit_fn)]
6 /// This needs to be documented
8 let result = Err("Hi");
12 /// This needs to be documented
14 panic!("This function panics")
17 /// This needs to be documented
22 /// This needs to be documented
23 pub fn inner_body(opt: Option<u32>) {
31 /// This needs to be documented
32 pub fn unreachable_and_panic() {
33 if true { unreachable!() } else { panic!() }
36 /// This is documented
40 /// Panics if `result` if an error
41 pub fn unwrap_documented() {
42 let result = Err("Hi");
46 /// This is documented
50 /// Panics just because
51 pub fn panic_documented() {
52 panic!("This function panics")
55 /// This is documented
59 /// Panics if `opt` is Just(10)
60 pub fn inner_body_documented(opt: Option<u32>) {
68 /// This is documented
72 /// We still need to do this part
73 pub fn todo_documented() {
77 /// This is documented
81 /// We still need to do this part
82 pub fn unreachable_amd_panic_documented() {
83 if true { unreachable!() } else { panic!() }
86 /// This is okay because it is private
88 let result = Err("Hi");
92 /// This is okay because it is private
94 panic!("This function panics")
97 /// This is okay because it is private
102 /// This is okay because it is private
103 fn inner_body_private(opt: Option<u32>) {
111 /// This is okay because unreachable
112 pub fn unreachable() {
113 unreachable!("This function panics")