aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu.zig
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2025-03-05 03:17:54 +0000
committerAndrew Kelley <andrew@ziglang.org>2025-07-11 08:17:43 +0200
commiteb375525366ba51c3f626cf9b27d97fc81e2c938 (patch)
treebabf69fdb1cd163a81ecb4c23581a628bbf1f9ce /src/Zcu.zig
parentd83b95cbf4895027b1730ef6025df4fe01beba26 (diff)
downloadzig-eb375525366ba51c3f626cf9b27d97fc81e2c938.tar.gz
zig-eb375525366ba51c3f626cf9b27d97fc81e2c938.zip
Remove numerous things deprecated during the 0.14 release cycle
Basically everything that has a direct replacement or no uses left. Notable omissions: - std.ArrayHashMap: Too much fallout, needs a separate cleanup. - std.debug.runtime_safety: Too much fallout. - std.heap.GeneralPurposeAllocator: Lots of references to it remain, not a simple find and replace as "debug allocator" is not equivalent to "general purpose allocator". - std.io.Reader: Is being reworked at the moment. - std.unicode.utf8Decode(): No replacement, needs a new API first. - Manifest backwards compat options: Removal would break test data used by TestFetchBuilder. - panic handler needs to be a namespace: Many tests still rely on it being a function, needs a separate cleanup.
Diffstat (limited to 'src/Zcu.zig')
-rw-r--r--src/Zcu.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Zcu.zig b/src/Zcu.zig
index 26ee09cfbf..6d07477edc 100644
--- a/src/Zcu.zig
+++ b/src/Zcu.zig
@@ -808,7 +808,7 @@ pub const Namespace = struct {
pub fn hash(ctx: NavNameContext, nav: InternPool.Nav.Index) u32 {
const name = ctx.zcu.intern_pool.getNav(nav).name;
- return std.hash.uint32(@intFromEnum(name));
+ return std.hash.int(@intFromEnum(name));
}
pub fn eql(ctx: NavNameContext, a_nav: InternPool.Nav.Index, b_nav: InternPool.Nav.Index, b_index: usize) bool {
@@ -824,7 +824,7 @@ pub const Namespace = struct {
pub fn hash(ctx: NameAdapter, s: InternPool.NullTerminatedString) u32 {
_ = ctx;
- return std.hash.uint32(@intFromEnum(s));
+ return std.hash.int(@intFromEnum(s));
}
pub fn eql(ctx: NameAdapter, a: InternPool.NullTerminatedString, b_nav: InternPool.Nav.Index, b_index: usize) bool {