Wrap import params expr so we can constrain later

This commit is contained in:
Agus Zubiaga 2024-05-30 21:55:28 -03:00
parent dcb2767b6e
commit 674adf1fad
No known key found for this signature in database
8 changed files with 68 additions and 14 deletions

View file

@ -1254,6 +1254,14 @@ fn fix_values_captured_in_closure_expr(
}
}
ImportParams(loc_expr, _) => {
fix_values_captured_in_closure_expr(
&mut loc_expr.value,
no_capture_symbols,
closure_captures,
);
}
Tuple { elems, .. } => {
for (_var, expr) in elems.iter_mut() {
fix_values_captured_in_closure_expr(