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

moonbitlang / core / 5499
91%

Build:
DEFAULT BRANCH: main
Ran 23 Jul 2026 05:37AM UTC
Jobs 1
Files 436
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

23 Jul 2026 05:36AM UTC coverage: 91.271%. Remained the same
5499

push

github

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

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

- Promote (plain `pub extend`): `BigInt`'s arithmetic/bitwise (Add/Sub/Mul/Div/
  Mod/Neg/BitAnd/BitOr/BitXOr), `Compare::{compare}`, `Default`, `ToJson::{to_json}`.
- Deprecate (`#deprecated(..., skip_current_package=true)` + `#doc(hidden)`):
  `Compare::{op_ge,op_gt,op_le,op_lt}`, `Eq`, `Hash`, `Show::{output}`,
  `@debug.Debug::{to_repr}`, `@json.FromJson::{from_json}`,
  `@quickcheck.Arbitrary::{arbitrary}`.

Two non-mechanical details:
- JS extern collision: bigint_js.mbt's `extern "js" fn BigInt::compare` / `::equal`
  share names with the promoted `Compare::{compare}` / `Eq` (E4056, JS target). The
  externs are renamed to `compare_js` / `equal_js` (private -> not in the .mbti) and
  their two impl bodies updated to call the renamed externs.
- `BigInt::to_json` is PROMOTED, not deprecated: it has cross-package method-syntax
  callers (builtin/json tests); deprecating it would break the `--deny-warn`
  workspace build (mirrors builtin/float). bigint's own blackbox-test callers of the
  deprecated `hash`/`arbitrary` are migrated to `Hash::hash(x)` /
  `@quickcheck.Arbitrary::arbitrary` (scoped to bigint/bigint_test.mbt).

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

Verified: `moon check --deny-warn --target all` clean; `moon test -p bigint --target all` green (140 js / 165 native).

Reviewed by Codex CLI: E0079 cleared; arithmetic/compare/default/to_json promoted, rest deprecated+hidden;
JS externs renamed to avoid collision; to_json promoted to avoid cross-package ripple; scoped to bigint/.

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

15883 of 17402 relevant lines covered (91.27%)

189058.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5499.1 23 Jul 2026 05:37AM UTC 437
91.29
GitHub Action Run
Source Files on build 5499
  • Tree
  • List 436
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 05b2a3f6 on github
  • Prev Build on main (#5498)
  • Next Build on main (#5501)
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