]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/missing_panics_doc.stderr
Rollup merge of #105144 - compiler-errors:normalization-doc, r=lcnr
[rust.git] / src / tools / clippy / tests / ui / missing_panics_doc.stderr
1 error: docs for function which may panic missing `# Panics` section
2   --> $DIR/missing_panics_doc.rs:6:1
3    |
4 LL | pub fn unwrap() {
5    | ^^^^^^^^^^^^^^^
6    |
7 note: first possible panic found here
8   --> $DIR/missing_panics_doc.rs:8:5
9    |
10 LL |     result.unwrap()
11    |     ^^^^^^^^^^^^^^^
12    = note: `-D clippy::missing-panics-doc` implied by `-D warnings`
13
14 error: docs for function which may panic missing `# Panics` section
15   --> $DIR/missing_panics_doc.rs:12:1
16    |
17 LL | pub fn panic() {
18    | ^^^^^^^^^^^^^^
19    |
20 note: first possible panic found here
21   --> $DIR/missing_panics_doc.rs:13:5
22    |
23 LL |     panic!("This function panics")
24    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
26 error: docs for function which may panic missing `# Panics` section
27   --> $DIR/missing_panics_doc.rs:17:1
28    |
29 LL | pub fn todo() {
30    | ^^^^^^^^^^^^^
31    |
32 note: first possible panic found here
33   --> $DIR/missing_panics_doc.rs:18:5
34    |
35 LL |     todo!()
36    |     ^^^^^^^
37
38 error: docs for function which may panic missing `# Panics` section
39   --> $DIR/missing_panics_doc.rs:22:1
40    |
41 LL | pub fn inner_body(opt: Option<u32>) {
42    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43    |
44 note: first possible panic found here
45   --> $DIR/missing_panics_doc.rs:25:13
46    |
47 LL |             panic!()
48    |             ^^^^^^^^
49
50 error: docs for function which may panic missing `# Panics` section
51   --> $DIR/missing_panics_doc.rs:31:1
52    |
53 LL | pub fn unreachable_and_panic() {
54    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55    |
56 note: first possible panic found here
57   --> $DIR/missing_panics_doc.rs:32:39
58    |
59 LL |     if true { unreachable!() } else { panic!() }
60    |                                       ^^^^^^^^
61
62 error: docs for function which may panic missing `# Panics` section
63   --> $DIR/missing_panics_doc.rs:36:1
64    |
65 LL | pub fn assert_eq() {
66    | ^^^^^^^^^^^^^^^^^^
67    |
68 note: first possible panic found here
69   --> $DIR/missing_panics_doc.rs:38:5
70    |
71 LL |     assert_eq!(x, 0);
72    |     ^^^^^^^^^^^^^^^^
73
74 error: docs for function which may panic missing `# Panics` section
75   --> $DIR/missing_panics_doc.rs:42:1
76    |
77 LL | pub fn assert_ne() {
78    | ^^^^^^^^^^^^^^^^^^
79    |
80 note: first possible panic found here
81   --> $DIR/missing_panics_doc.rs:44:5
82    |
83 LL |     assert_ne!(x, 0);
84    |     ^^^^^^^^^^^^^^^^
85
86 error: aborting due to 7 previous errors
87