mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.ArrayHashMap: unmanaged holds the pointer stability lock
This commit is contained in:
parent
ae919915f6
commit
64e84a452b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue