aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.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/InternPool.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/InternPool.zig')
-rw-r--r--src/InternPool.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index 8471a1ad9e..ba5725ec30 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -1861,7 +1861,7 @@ pub const NullTerminatedString = enum(u32) {
pub fn hash(ctx: @This(), a: NullTerminatedString) u32 {
_ = ctx;
- return std.hash.uint32(@intFromEnum(a));
+ return std.hash.int(@intFromEnum(a));
}
};
@@ -4740,7 +4740,7 @@ pub const Index = enum(u32) {
pub fn hash(ctx: @This(), a: Index) u32 {
_ = ctx;
- return std.hash.uint32(@intFromEnum(a));
+ return std.hash.int(@intFromEnum(a));
}
};
@@ -12725,7 +12725,7 @@ const GlobalErrorSet = struct {
name: NullTerminatedString,
) Allocator.Error!GlobalErrorSet.Index {
if (name == .empty) return .none;
- const hash = std.hash.uint32(@intFromEnum(name));
+ const hash = std.hash.int(@intFromEnum(name));
var map = ges.shared.map.acquire();
const Map = @TypeOf(map);
var map_mask = map.header().mask();
@@ -12818,7 +12818,7 @@ const GlobalErrorSet = struct {
name: NullTerminatedString,
) ?GlobalErrorSet.Index {
if (name == .empty) return .none;
- const hash = std.hash.uint32(@intFromEnum(name));
+ const hash = std.hash.int(@intFromEnum(name));
const map = ges.shared.map.acquire();
const map_mask = map.header().mask();
const names_items = ges.shared.names.acquire().view().items(.@"0");