std: Convert deprecated aliases to compile errors and fix usages #19847
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.
Deprecated aliases that are now compile errors:
std.fs.MAX_PATH_BYTES
(renamed tostd.fs.max_path_bytes
)std.mem.tokenize
(split intotokenizeAny
,tokenizeSequence
,tokenizeScalar
)std.mem.split
(split intosplitSequence
,splitAny
,splitScalar
)std.mem.splitBackwards
(split intosplitBackwardsSequence
,splitBackwardsAny
,splitBackwardsScalar
)std.unicode
utf16leToUtf8Alloc
,utf16leToUtf8AllocZ
,utf16leToUtf8
,fmtUtf16le
(all renamed to have capitalizedLe
)utf8ToUtf16LeWithNull
(renamed toutf8ToUtf16LeAllocZ
)std.zig.CrossTarget
(moved tostd.Target.Query
)Deprecated
lib/std/std.zig
decls were deleted instead of made a@compileError
because therefAllDecls
in the test block would trigger the@compileError
. The deleted top-levelstd
namespaces are:std.rand
(renamed tostd.Random
)std.TailQueue
(renamed tostd.DoublyLinkedList
)std.ChildProcess
(renamed/moved tostd.process.Child
)This is not exhaustive. Deprecated aliases that I didn't touch:
std.io.*
std.Build.*
std.builtin.Mode
std.zig.c_translation.CIntLiteralRadix
std.fs.Dir.writeFile
(handled separately in RenameDir.writeFile2
->Dir.writeFile
and update all callsites #19844)src/