]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir_def/src/body/scope.rs
internal: Replace Vec with Box in hir Expr
[rust.git] / crates / hir_def / src / body / scope.rs
index 147d641235710c6a9b0e335becf27d7360e3df19..2658eece8e85e60fa93a8d95dbd4cd9bcb7a3bb4 100644 (file)
@@ -204,7 +204,7 @@ fn compute_expr_scopes(expr: ExprId, body: &Body, scopes: &mut ExprScopes, scope
         }
         Expr::Match { expr, arms } => {
             compute_expr_scopes(*expr, body, scopes, scope);
-            for arm in arms {
+            for arm in arms.iter() {
                 let mut scope = scopes.new_scope(scope);
                 scopes.add_bindings(body, scope, arm.pat);
                 match arm.guard {