Repository navigation
str.index_of, to_upper, to_lower, replace and repeat are declared in the standard library and their built-ins are deleted (#3483) - #3496
Merged
Conversation
added 2 commits
November 20, 2026 20:16
…the standard library and their built-ins are deleted (#3483)
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3483 (D110): five more
strmethods (seven spellings:upperandlowerstay besideto_upperandto_lower) are declared in std.string over the runtime calls their built-ins made.Deleted from the compiler in the same change: their entries in
builtin_method_intrinsicand in the name-based return-type table (the second derivation that bit the previous step), threeBuiltinSigsrows, theMirIntrinsicandCcBuiltinmembers, the arms in the LLVM and C code generators, and one mention in the MIR validator. About 150 lines.Tests:
behav_3483_str_transforms_declared(a call, at compile time, as a method value, on a view, in a pipeline); the C-backend tests pass.err_2358_builtin_extra_argusedindex_ofas its example of a built-in; it now usesbyte_at, which still is one.Ten built-in methods have moved so far (two on
List, eight onstr).Battery green;
:release-checksgreen.