Commit 8c48467
committed
fix(lowering): propagate destruct-impl error in closure lowering
lower_expr_closure discarded the Maybe<()> from add_capture_destruct_impl
via `let _ =`, so a DB/inference failure (which already emits a diagnostic
via `?` internally) was silently swallowed and lowering continued as if the
capture's destruct impl had been generated. Propagate it with
.map_err(LoweringFlowError::Failed)? to match every other add_* call site.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3ce5806 commit 8c48467
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2149 | 2149 | | |
2150 | 2150 | | |
2151 | 2151 | | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
| 2152 | + | |
| 2153 | + | |
2158 | 2154 | | |
2159 | 2155 | | |
2160 | 2156 | | |
| |||
0 commit comments