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

moonbitlang / core / 6467
89%

Build:
DEFAULT BRANCH: main
Ran 01 Sep 2026 02:36AM UTC
Jobs 1
Files 453
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

01 Sep 2026 02:33AM UTC coverage: 91.007% (-0.002%) from 91.009%
6467

push

github

bobzhang
refactor(builtin): add Array::Array constructor, deprecate Array::new

Array::new was one of the last holdouts of the `T::T` constructor
convention already adopted by Map, HashMap, Set, Deque, Queue, SortedMap,
HashSet, PriorityQueue and SortedSet, whose `::new` forms now live in
deprecated.mbt.

Renames `Array::new(capacity?)` to `Array::Array(capacity?)` on both the
js and non-js backends, enabling the bare `Array(capacity=...)` sugar,
and keeps `Array::new` as a deprecated shim.

Unlike the container types, the positional ArrayView slot of the
`T::T(ArrayView, capacity?)` shape is omitted: for Array it degenerates
into a copy constructor, and a direct rename keeps downstream migration a
plain textual substitution of `Array::new(` to `Array(`.

Json also declares an `Array` constructor, so within the builtin package
the bare form is ambiguous and three call sites spell it `Array::Array`.
Outside builtin both the annotated and inferred forms resolve cleanly.

24 of 24 new or added lines in 16 files covered. (100.0%)

16880 of 18548 relevant lines covered (91.01%)

283166.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6467.1 01 Sep 2026 02:36AM UTC 454
91.02
GitHub Action Run
Source Files on build 6467
  • Tree
  • List 453
  • Changed 20
  • Source Changed 20
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 33914192 on github
  • Prev Build on main (#6465)
  • Next Build on main (#6469)
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