mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Merge branch 'main' into cleanup_unused
This commit is contained in:
commit
01f4d4f3da
514 changed files with 4950 additions and 1811 deletions
|
@ -369,9 +369,10 @@ pub fn canonicalize_module_defs<'a>(
|
|||
PatternType::TopLevelDef,
|
||||
);
|
||||
|
||||
for (_early_return_var, early_return_region) in &scope.early_returns {
|
||||
for (_early_return_var, early_return_region, early_return_kind) in &scope.early_returns {
|
||||
env.problem(Problem::ReturnOutsideOfFunction {
|
||||
region: *early_return_region,
|
||||
return_kind: *early_return_kind,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -962,6 +963,14 @@ fn fix_values_captured_in_closure_expr(
|
|||
);
|
||||
}
|
||||
|
||||
Try { result_expr, .. } => {
|
||||
fix_values_captured_in_closure_expr(
|
||||
&mut result_expr.value,
|
||||
no_capture_symbols,
|
||||
closure_captures,
|
||||
);
|
||||
}
|
||||
|
||||
Return { return_value, .. } => {
|
||||
fix_values_captured_in_closure_expr(
|
||||
&mut return_value.value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue