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

moonbitlang / core / 5554

25 Jul 2026 09:45AM UTC coverage: 91.132% (-0.1%) from 91.256%
5554

push

github

bobzhang
refactor(debug): deprecate free `to_repr`, migrate call sites to `Repr(x)`

Follows the `Repr(x)` constructor: `to_repr` is now
`#as_free_fn(deprecated="Use `Repr(x)` instead")`, and every call site is
migrated.

Spelling follows normal prelude scoping — core's own library/whitebox code sits
below prelude in the dep graph and never gets its re-exports:

- user code, blackbox tests, and packages that already have `Repr` in scope:
  `Repr(x)`
- the two places that don't (`bigint/bigint_nonjs_wbtest.mbt`,
  `lazy_list/debug.mbt`): `@debug.Repr(x)`

The `#deprecated` messages on the per-package `X::to_repr` wrappers are updated
from "use `to_repr(a)`" to "use `Repr(a)`" so they point at the surviving
spelling.

Prelude keeps re-exporting `to_repr` (with `#warnings("-deprecated")` at the
re-export) so existing user code gets a deprecation warning and a migration path
rather than an unbound identifier.

Verified: `moon check --deny-warn --target all` clean; `moon test --target all`
green (6785/6785/6741/6696).

44 of 47 new or added lines in 27 files covered. (93.62%)

15640 of 17162 relevant lines covered (91.13%)

191700.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/bytes/internal/regex_engine/ast/pattern.mbt


Build SHA Not Found

The commit SHA "c2fb8b6efe2065487ed8359da6e3cb4c0fd8cb97" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

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