@@ -169,46 +169,52 @@ LL | TyKind::Infer(..) => (),
169
169
error: usage of `ty::TyKind::<kind>`
170
170
--> $DIR/ty_tykind_usage.rs:42:9
171
171
|
172
+ LL | TyKind::TyAlias(..) => (),
173
+ | ^^^^^^ help: try using `ty::<kind>` directly: `ty`
174
+
175
+ error: usage of `ty::TyKind::<kind>`
176
+ --> $DIR/ty_tykind_usage.rs:43:9
177
+ |
172
178
LL | TyKind::Error(_) => (),
173
179
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
174
180
175
181
error: usage of `ty::TyKind::<kind>`
176
- --> $DIR/ty_tykind_usage.rs:47 :12
182
+ --> $DIR/ty_tykind_usage.rs:48 :12
177
183
|
178
184
LL | if let TyKind::Int(int_ty) = kind {}
179
185
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
180
186
181
187
error: usage of `ty::TyKind`
182
- --> $DIR/ty_tykind_usage.rs:49 :24
188
+ --> $DIR/ty_tykind_usage.rs:50 :24
183
189
|
184
190
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
185
191
| ^^^^^^^^^^
186
192
|
187
193
= help: try using `Ty` instead
188
194
189
195
error: usage of `ty::TyKind`
190
- --> $DIR/ty_tykind_usage.rs:51 :37
196
+ --> $DIR/ty_tykind_usage.rs:52 :37
191
197
|
192
198
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
193
199
| ^^^^^^^^^^^
194
200
|
195
201
= help: try using `Ty` instead
196
202
197
203
error: usage of `ty::TyKind`
198
- --> $DIR/ty_tykind_usage.rs:51 :53
204
+ --> $DIR/ty_tykind_usage.rs:52 :53
199
205
|
200
206
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
201
207
| ^^^^^^^^^^^
202
208
|
203
209
= help: try using `Ty` instead
204
210
205
211
error: usage of `ty::TyKind::<kind>`
206
- --> $DIR/ty_tykind_usage.rs:54 :9
212
+ --> $DIR/ty_tykind_usage.rs:55 :9
207
213
|
208
214
LL | IrTyKind::Bool
209
215
| --------^^^^^^
210
216
| |
211
217
| help: try using `ty::<kind>` directly: `ty`
212
218
213
- error: aborting due to 33 previous errors
219
+ error: aborting due to 34 previous errors
214
220
0 commit comments