mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
internal: Replace Vec with Box in hir Expr
This commit is contained in:
parent
14dff25107
commit
cc327774b7
5 changed files with 34 additions and 37 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue