add assertLocked to std.debug.SafetyLock
This commit is contained in:
committed by
Andrew Kelley
parent
73dcd19140
commit
b2c62bcbf6
@@ -1692,7 +1692,7 @@ pub fn HashMapUnmanaged(
|
||||
}
|
||||
|
||||
self.size = 0;
|
||||
self.pointer_stability = .{ .state = .unlocked };
|
||||
self.pointer_stability = .{};
|
||||
std.mem.swap(Self, self, &map);
|
||||
map.deinit(allocator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user