internal: Replace Vec with Box in hir Expr

This commit is contained in:
Lukas Wirth 2021-11-20 16:00:45 +01:00
parent 14dff25107
commit cc327774b7
5 changed files with 34 additions and 37 deletions

View file

@ -375,7 +375,7 @@ impl<'a> InferenceContext<'a> {
let matchee_diverges = self.diverges;
let mut all_arms_diverge = Diverges::Always;
for arm in arms {
for arm in arms.iter() {
self.diverges = Diverges::Maybe;
let _pat_ty = self.infer_pat(arm.pat, &input_ty, BindingMode::default());
match arm.guard {