toplevel debug

This commit is contained in:
Folkert 2022-11-23 20:29:45 +01:00
parent 928495072c
commit 5ea8d96f3e
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 70 additions and 10 deletions

View file

@ -615,6 +615,7 @@ pub fn canonicalize_module_defs<'a>(
}
Expectation => { /* ignore */ }
ExpectationFx => { /* ignore */ }
Dbg => { /* ignore */ }
}
}
@ -757,15 +758,7 @@ pub fn canonicalize_module_defs<'a>(
MutualRecursion { .. } => {
// the declarations of this group will be treaded individually by later iterations
}
Expectation => {
let loc_expr = &mut declarations.expressions[index];
fix_values_captured_in_closure_expr(
&mut loc_expr.value,
&mut fix_closures_no_capture_symbols,
&mut fix_closures_closure_captures,
);
}
ExpectationFx => {
Expectation | ExpectationFx | Dbg => {
let loc_expr = &mut declarations.expressions[index];
fix_values_captured_in_closure_expr(
&mut loc_expr.value,