• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 6182
91%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 08:32AM UTC
Jobs 1
Files 444
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Aug 2026 08:29AM UTC coverage: 90.705% (-0.001%) from 90.706%
6182

push

github

bobzhang
refactor(error): drop the catch-all cleanup in the protect design notes

The pre-release compiler's new `fragile_catch_all` lint (error 0092) rejects a
catch-all whose handler cleans up and re-raises, which both `protect` helpers
used.

`protect` swallows the finalizer's error, so its cleanup cannot raise and it
becomes a plain `defer`. `protect2` deliberately lets the finalizer's error
win, and neither rewrite the lint suggests fits: `defer` may not call a raising
function (error 4174), and `errdefer` is still only a reserved word on the
stable toolchain. It instead captures the outcome as a `Result`, runs the
finalizer on the single shared path, and re-raises afterwards -- the catch arm
no longer cleans up or re-raises.

Behavior is unchanged: "protect & finally raise error" still reports the work
error and "protect2 & finally raise error" still reports the finalizer error.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

16278 of 17946 relevant lines covered (90.71%)

331135.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6182.1 19 Aug 2026 08:32AM UTC 445
90.72
GitHub Action Run
Source Files on build 6182
  • Tree
  • List 444
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7c33fe18 on github
  • Prev Build on main (#6178)
  • Next Build on main (#6186)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc