Fix text fixtures of missing_match_arms diagnostics

This commit is contained in:
Lukas Wirth 2023-03-03 11:13:06 +01:00
parent 44e2c6ea92
commit 522823f610
3 changed files with 11 additions and 3 deletions

View file

@ -398,7 +398,7 @@ impl<'a> InferenceContext<'a> {
for arm in arms.iter() {
self.diverges = Diverges::Maybe;
let input_ty = self.resolve_ty_shallow(&input_ty);
let _pat_ty = self.infer_top_pat(arm.pat, &input_ty);
self.infer_top_pat(arm.pat, &input_ty);
if let Some(guard_expr) = arm.guard {
self.infer_expr(
guard_expr,