|
1 | 1 | error: docs for function which may panic missing `# Panics` section
|
2 |
| - --> $DIR/missing_panics_doc.rs:6:1 |
| 2 | + --> $DIR/missing_panics_doc.rs:13:1 |
3 | 3 | |
|
4 | 4 | LL | pub fn unwrap() {
|
5 | 5 | | ^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | note: first possible panic found here
|
8 |
| - --> $DIR/missing_panics_doc.rs:8:5 |
| 8 | + --> $DIR/missing_panics_doc.rs:15:5 |
9 | 9 | |
|
10 | 10 | LL | result.unwrap()
|
11 | 11 | | ^^^^^^^^^^^^^^^
|
12 | 12 | = note: `-D clippy::missing-panics-doc` implied by `-D warnings`
|
13 | 13 |
|
14 | 14 | error: docs for function which may panic missing `# Panics` section
|
15 |
| - --> $DIR/missing_panics_doc.rs:12:1 |
| 15 | + --> $DIR/missing_panics_doc.rs:19:1 |
16 | 16 | |
|
17 | 17 | LL | pub fn panic() {
|
18 | 18 | | ^^^^^^^^^^^^^^
|
19 | 19 | |
|
20 | 20 | note: first possible panic found here
|
21 |
| - --> $DIR/missing_panics_doc.rs:13:5 |
| 21 | + --> $DIR/missing_panics_doc.rs:20:5 |
22 | 22 | |
|
23 | 23 | LL | panic!("This function panics")
|
24 | 24 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
25 | 25 |
|
26 | 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 |
| 27 | + --> $DIR/missing_panics_doc.rs:24:1 |
40 | 28 | |
|
41 | 29 | LL | pub fn inner_body(opt: Option<u32>) {
|
42 | 30 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
43 | 31 | |
|
44 | 32 | note: first possible panic found here
|
45 |
| - --> $DIR/missing_panics_doc.rs:25:13 |
| 33 | + --> $DIR/missing_panics_doc.rs:27:13 |
46 | 34 | |
|
47 | 35 | LL | panic!()
|
48 | 36 | | ^^^^^^^^
|
49 | 37 |
|
50 | 38 | error: docs for function which may panic missing `# Panics` section
|
51 |
| - --> $DIR/missing_panics_doc.rs:31:1 |
| 39 | + --> $DIR/missing_panics_doc.rs:33:1 |
52 | 40 | |
|
53 | 41 | LL | pub fn unreachable_and_panic() {
|
54 | 42 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
55 | 43 | |
|
56 | 44 | note: first possible panic found here
|
57 |
| - --> $DIR/missing_panics_doc.rs:32:39 |
| 45 | + --> $DIR/missing_panics_doc.rs:34:39 |
58 | 46 | |
|
59 | 47 | LL | if true { unreachable!() } else { panic!() }
|
60 | 48 | | ^^^^^^^^
|
61 | 49 |
|
62 | 50 | error: docs for function which may panic missing `# Panics` section
|
63 |
| - --> $DIR/missing_panics_doc.rs:36:1 |
| 51 | + --> $DIR/missing_panics_doc.rs:38:1 |
64 | 52 | |
|
65 | 53 | LL | pub fn assert_eq() {
|
66 | 54 | | ^^^^^^^^^^^^^^^^^^
|
67 | 55 | |
|
68 | 56 | note: first possible panic found here
|
69 |
| - --> $DIR/missing_panics_doc.rs:38:5 |
| 57 | + --> $DIR/missing_panics_doc.rs:40:5 |
70 | 58 | |
|
71 | 59 | LL | assert_eq!(x, 0);
|
72 | 60 | | ^^^^^^^^^^^^^^^^
|
73 | 61 |
|
74 | 62 | error: docs for function which may panic missing `# Panics` section
|
75 |
| - --> $DIR/missing_panics_doc.rs:42:1 |
| 63 | + --> $DIR/missing_panics_doc.rs:44:1 |
76 | 64 | |
|
77 | 65 | LL | pub fn assert_ne() {
|
78 | 66 | | ^^^^^^^^^^^^^^^^^^
|
79 | 67 | |
|
80 | 68 | note: first possible panic found here
|
81 |
| - --> $DIR/missing_panics_doc.rs:44:5 |
| 69 | + --> $DIR/missing_panics_doc.rs:46:5 |
82 | 70 | |
|
83 | 71 | LL | assert_ne!(x, 0);
|
84 | 72 | | ^^^^^^^^^^^^^^^^
|
85 | 73 |
|
86 | 74 | error: docs for function which may panic missing `# Panics` section
|
87 |
| - --> $DIR/missing_panics_doc.rs:158:5 |
| 75 | + --> $DIR/missing_panics_doc.rs:151:5 |
88 | 76 | |
|
89 | 77 | LL | pub fn option_unwrap<T>(v: &[T]) -> &T {
|
90 | 78 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
91 | 79 | |
|
92 | 80 | note: first possible panic found here
|
93 |
| - --> $DIR/missing_panics_doc.rs:160:9 |
| 81 | + --> $DIR/missing_panics_doc.rs:153:9 |
94 | 82 | |
|
95 | 83 | LL | o.unwrap()
|
96 | 84 | | ^^^^^^^^^^
|
97 | 85 |
|
98 | 86 | error: docs for function which may panic missing `# Panics` section
|
99 |
| - --> $DIR/missing_panics_doc.rs:163:5 |
| 87 | + --> $DIR/missing_panics_doc.rs:156:5 |
100 | 88 | |
|
101 | 89 | LL | pub fn option_expect<T>(v: &[T]) -> &T {
|
102 | 90 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
103 | 91 | |
|
104 | 92 | note: first possible panic found here
|
105 |
| - --> $DIR/missing_panics_doc.rs:165:9 |
| 93 | + --> $DIR/missing_panics_doc.rs:158:9 |
106 | 94 | |
|
107 | 95 | LL | o.expect("passed an empty thing")
|
108 | 96 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
109 | 97 |
|
110 | 98 | error: docs for function which may panic missing `# Panics` section
|
111 |
| - --> $DIR/missing_panics_doc.rs:168:5 |
| 99 | + --> $DIR/missing_panics_doc.rs:161:5 |
112 | 100 | |
|
113 | 101 | LL | pub fn result_unwrap<T>(v: &[T]) -> &T {
|
114 | 102 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
115 | 103 | |
|
116 | 104 | note: first possible panic found here
|
117 |
| - --> $DIR/missing_panics_doc.rs:170:9 |
| 105 | + --> $DIR/missing_panics_doc.rs:163:9 |
118 | 106 | |
|
119 | 107 | LL | res.unwrap()
|
120 | 108 | | ^^^^^^^^^^^^
|
121 | 109 |
|
122 | 110 | error: docs for function which may panic missing `# Panics` section
|
123 |
| - --> $DIR/missing_panics_doc.rs:173:5 |
| 111 | + --> $DIR/missing_panics_doc.rs:166:5 |
124 | 112 | |
|
125 | 113 | LL | pub fn result_expect<T>(v: &[T]) -> &T {
|
126 | 114 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
127 | 115 | |
|
128 | 116 | note: first possible panic found here
|
129 |
| - --> $DIR/missing_panics_doc.rs:175:9 |
| 117 | + --> $DIR/missing_panics_doc.rs:168:9 |
130 | 118 | |
|
131 | 119 | LL | res.expect("passed an empty thing")
|
132 | 120 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
133 | 121 |
|
134 | 122 | error: docs for function which may panic missing `# Panics` section
|
135 |
| - --> $DIR/missing_panics_doc.rs:178:5 |
| 123 | + --> $DIR/missing_panics_doc.rs:171:5 |
136 | 124 | |
|
137 | 125 | LL | pub fn last_unwrap(v: &[u32]) -> u32 {
|
138 | 126 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
139 | 127 | |
|
140 | 128 | note: first possible panic found here
|
141 |
| - --> $DIR/missing_panics_doc.rs:179:10 |
| 129 | + --> $DIR/missing_panics_doc.rs:172:10 |
142 | 130 | |
|
143 | 131 | LL | *v.last().unwrap()
|
144 | 132 | | ^^^^^^^^^^^^^^^^^
|
145 | 133 |
|
146 | 134 | error: docs for function which may panic missing `# Panics` section
|
147 |
| - --> $DIR/missing_panics_doc.rs:182:5 |
| 135 | + --> $DIR/missing_panics_doc.rs:175:5 |
148 | 136 | |
|
149 | 137 | LL | pub fn last_expect(v: &[u32]) -> u32 {
|
150 | 138 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
151 | 139 | |
|
152 | 140 | note: first possible panic found here
|
153 |
| - --> $DIR/missing_panics_doc.rs:183:10 |
| 141 | + --> $DIR/missing_panics_doc.rs:176:10 |
154 | 142 | |
|
155 | 143 | LL | *v.last().expect("passed an empty thing")
|
156 | 144 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
157 | 145 |
|
158 |
| -error: aborting due to 13 previous errors |
| 146 | +error: aborting due to 12 previous errors |
159 | 147 |
|
0 commit comments