@@ -85,76 +85,88 @@ LL | assert!(N > n);
85
85
| ^^^^^^^^^^^^^^
86
86
87
87
error: docs for function which may panic missing `# Panics` section
88
- --> tests/ui/missing_panics_doc.rs:167:5
88
+ --> tests/ui/missing_panics_doc.rs:172:1
89
+ |
90
+ LL | pub fn expect_allow_with_error(i: Option<isize>) {
91
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
+ |
93
+ note: first possible panic found here
94
+ --> tests/ui/missing_panics_doc.rs:181:5
95
+ |
96
+ LL | i.unwrap();
97
+ | ^^^^^^^^^^
98
+
99
+ error: docs for function which may panic missing `# Panics` section
100
+ --> tests/ui/missing_panics_doc.rs:187:5
89
101
|
90
102
LL | pub fn option_unwrap<T>(v: &[T]) -> &T {
91
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
104
|
93
105
note: first possible panic found here
94
- --> tests/ui/missing_panics_doc.rs:170 :9
106
+ --> tests/ui/missing_panics_doc.rs:190 :9
95
107
|
96
108
LL | o.unwrap()
97
109
| ^^^^^^^^^^
98
110
99
111
error: docs for function which may panic missing `# Panics` section
100
- --> tests/ui/missing_panics_doc.rs:173 :5
112
+ --> tests/ui/missing_panics_doc.rs:193 :5
101
113
|
102
114
LL | pub fn option_expect<T>(v: &[T]) -> &T {
103
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
116
|
105
117
note: first possible panic found here
106
- --> tests/ui/missing_panics_doc.rs:176 :9
118
+ --> tests/ui/missing_panics_doc.rs:196 :9
107
119
|
108
120
LL | o.expect("passed an empty thing")
109
121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
122
111
123
error: docs for function which may panic missing `# Panics` section
112
- --> tests/ui/missing_panics_doc.rs:179 :5
124
+ --> tests/ui/missing_panics_doc.rs:199 :5
113
125
|
114
126
LL | pub fn result_unwrap<T>(v: &[T]) -> &T {
115
127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
128
|
117
129
note: first possible panic found here
118
- --> tests/ui/missing_panics_doc.rs:182 :9
130
+ --> tests/ui/missing_panics_doc.rs:202 :9
119
131
|
120
132
LL | res.unwrap()
121
133
| ^^^^^^^^^^^^
122
134
123
135
error: docs for function which may panic missing `# Panics` section
124
- --> tests/ui/missing_panics_doc.rs:185 :5
136
+ --> tests/ui/missing_panics_doc.rs:205 :5
125
137
|
126
138
LL | pub fn result_expect<T>(v: &[T]) -> &T {
127
139
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128
140
|
129
141
note: first possible panic found here
130
- --> tests/ui/missing_panics_doc.rs:188 :9
142
+ --> tests/ui/missing_panics_doc.rs:208 :9
131
143
|
132
144
LL | res.expect("passed an empty thing")
133
145
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134
146
135
147
error: docs for function which may panic missing `# Panics` section
136
- --> tests/ui/missing_panics_doc.rs:191 :5
148
+ --> tests/ui/missing_panics_doc.rs:211 :5
137
149
|
138
150
LL | pub fn last_unwrap(v: &[u32]) -> u32 {
139
151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140
152
|
141
153
note: first possible panic found here
142
- --> tests/ui/missing_panics_doc.rs:193 :10
154
+ --> tests/ui/missing_panics_doc.rs:213 :10
143
155
|
144
156
LL | *v.last().unwrap()
145
157
| ^^^^^^^^^^^^^^^^^
146
158
147
159
error: docs for function which may panic missing `# Panics` section
148
- --> tests/ui/missing_panics_doc.rs:196 :5
160
+ --> tests/ui/missing_panics_doc.rs:216 :5
149
161
|
150
162
LL | pub fn last_expect(v: &[u32]) -> u32 {
151
163
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152
164
|
153
165
note: first possible panic found here
154
- --> tests/ui/missing_panics_doc.rs:198 :10
166
+ --> tests/ui/missing_panics_doc.rs:218 :10
155
167
|
156
168
LL | *v.last().expect("passed an empty thing")
157
169
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158
170
159
- error: aborting due to 13 previous errors
171
+ error: aborting due to 14 previous errors
160
172
0 commit comments