authorgravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2024-07-07 12:13:07+02:00
committergravatar for der.teufel.mail@gmail.comKrzysztof Wolicki <der.teufel.mail@gmail.com> 2024-07-07 12:13:07+02:00
log64e84a452b043599e96e1e6af895b9959628f1fe
tree08172d47155e2e0c5fda54a8f18f7bf92cfa386e
parentae919915f6c3c1827311ebc6ec3c5883a1cec08e

std.ArrayHashMap: unmanaged holds the pointer stability lock


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/array_hash_map.zig+1-1
......@@ -427,7 +427,7 @@ pub fn ArrayHashMap(
427427 /// Set the map to an empty state, making deinitialization a no-op, and
428428 /// returning a copy of the original.
429429 pub fn move(self: *Self) Self {
430 self.pointer_stability.assertUnlocked();
430 self.unmanaged.pointer_stability.assertUnlocked();
431431 const result = self.*;
432432 self.unmanaged = .{};
433433 return result;