From dae10d10fb37f8fd61decb1f9c48dbf93dbaf252 Mon Sep 17 00:00:00 2001 From: Agus Zubiaga Date: Sun, 27 Oct 2024 14:29:36 -0300 Subject: [PATCH] Do not alias ClosureData.fx_type in pattern matches --- crates/compiler/can/src/copy.rs | 4 ++-- crates/compiler/can/src/expr.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/compiler/can/src/copy.rs b/crates/compiler/can/src/copy.rs index 860d1d8e4a..52cadf1503 100644 --- a/crates/compiler/can/src/copy.rs +++ b/crates/compiler/can/src/copy.rs @@ -465,7 +465,7 @@ fn deep_copy_expr_help(env: &mut C, copied: &mut Vec, expr function_type, closure_type, return_type, - fx_type: effect_type, + fx_type, early_returns, name, captured_symbols, @@ -476,7 +476,7 @@ fn deep_copy_expr_help(env: &mut C, copied: &mut Vec, expr function_type: sub!(*function_type), closure_type: sub!(*closure_type), return_type: sub!(*return_type), - fx_type: sub!(*effect_type), + fx_type: sub!(*fx_type), early_returns: early_returns .iter() .map(|(var, region)| (sub!(*var), *region)) diff --git a/crates/compiler/can/src/expr.rs b/crates/compiler/can/src/expr.rs index 3debaeb086..1e619cc503 100644 --- a/crates/compiler/can/src/expr.rs +++ b/crates/compiler/can/src/expr.rs @@ -2325,7 +2325,7 @@ pub fn inline_calls(var_store: &mut VarStore, expr: Expr) -> Expr { function_type, closure_type, return_type, - fx_type: effect_type, + fx_type, early_returns, recursive, name, @@ -2343,7 +2343,7 @@ pub fn inline_calls(var_store: &mut VarStore, expr: Expr) -> Expr { function_type, closure_type, return_type, - fx_type: effect_type, + fx_type, early_returns, recursive, name,