Skip to content

str.split is declared in the standard library and its built-in is deleted (#3483); the stop guard skips issues labelled held (D225) - #3504

Merged
ehartford merged 4 commits into
mainfrom
builtin-bodies-5
Nov 21, 2026
Merged

ehartford merged 4 commits into
mainfrom
builtin-bodies-5

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Part of #3483 (D110).

str.split is declared in std.string over the runtime's split, and the compiler's copies are deleted: the entry in builtin_method_intrinsic, the name-based return-type entry, the BuiltinSigs row, the MirIntrinsic and CcBuiltin members, the arms in the LLVM and C code generators, and its mention in the copy-on-write list.

What the battery taught.

  • The C backend failed: the runtime's C header declared the split function's list parameter as with_vec *, while the runtime source declares *mut u8, as it does for every other list-out function (with_vec_new_out, with_vec_push_str). The built-in hid that by emitting its own call. The header now matches the source.
  • The census refused a list annotation in the library; the body builds its list with List[str].new().

Test: behav_3483_str_split_declared (a call, at compile time, as a method value, on a view, in a pipeline, the empty cases), no leaks under the debug allocator; the C-backend tests pass.

Eleven built-in methods have moved so far. On str only byte_at and slice remain.

Stop guard. It listed #3378 as work to start although windows-aarch64 is held (D225). It now skips issues labelled held, as it skips blocked and human attn needed.

Battery green; :release-checks green, on the current main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant