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

moonbitlang / core / 5334
91%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 09:50AM UTC
Jobs 1
Files 402
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

22 Jul 2026 09:49AM UTC coverage: 91.293%. Remained the same
5334

push

github

bobzhang
feat(set): make trait promotions explicit via extend

Enable `implicit_impl_as_method` (E0079) for the `set` package (in its moon.pkg)
and make its trait-impl promotions explicit via `extend`, in a dedicated
set/extends.mbt shim.

- Promote (plain `pub extend`): BitAnd (&), BitOr (|), BitXOr (^), Sub (-) -- the
  set-algebra operators -- and Default.
- Deprecate (`#deprecated(..., skip_current_package=true)` + `#doc(hidden)`):
  @debug.Debug, Eq, the whole Show trait (Set is a collection), and ToJson. Each
  message names the concrete replacement.

Also: the blackbox-test-only `Key` struct (derive(Eq)) gets an inline
`pub extend Key with Eq` in the test file (test types can't be named from the
source shim); and set's README doc examples migrate off the now-deprecated
`.to_json()` to `@json.to_json(...)`. pkg.generated.mbti gains only the promoted
Set operators + Set::default.

Part of the per-package series (see #3849 for deque). Scoped to set/.

Verified: `moon check --deny-warn --target all` clean; `moon test -p set --target all` green.

Reviewed by Codex CLI: Set shims cover exactly the flagged methods; Key covers
only derived Eq; operator promotion follows policy and the generic v.to_json() is
correctly left as X:ToJson trait dispatch; only the two README callers needed
migration; .mbti adds only default/land/lor/lxor/sub; scoped to set/.

Signed-off-by: Codex CLI <codex@openai.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

15885 of 17400 relevant lines covered (91.29%)

189078.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5334.1 22 Jul 2026 09:50AM UTC 403
91.31
GitHub Action Run
Source Files on build 5334
  • Tree
  • List 402
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 071fe76e on github
  • Prev Build on main (#5332)
  • Next Build on main (#5341)
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