From 64e84a452b043599e96e1e6af895b9959628f1fe Mon Sep 17 00:00:00 2001 From: Krzysztof Wolicki Date: Sun, 7 Jul 2024 12:13:07 +0200 Subject: [PATCH] std.ArrayHashMap: unmanaged holds the pointer stability lock --- lib/std/array_hash_map.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/array_hash_map.zig b/lib/std/array_hash_map.zig index ba086f8764..c82c553370 100644 --- a/lib/std/array_hash_map.zig +++ b/lib/std/array_hash_map.zig @@ -427,7 +427,7 @@ pub fn ArrayHashMap( /// Set the map to an empty state, making deinitialization a no-op, and /// returning a copy of the original. pub fn move(self: *Self) Self { - self.pointer_stability.assertUnlocked(); + self.unmanaged.pointer_stability.assertUnlocked(); const result = self.*; self.unmanaged = .{}; return result;