mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
Tests: add unsafe keywords where needed
This commit is contained in:
25 files changed
+301
-300
No files matched your search
@@ -93,7 +93,7 @@ extension _HashNode {
|
||||
_ level: _HashLevel, _ stats: inout _HashTreeStatistics
|
||||
) {
|
||||
// The empty singleton does not count as a node and occupies no space.
|
||||
if self.raw.storage === _emptySingleton { return }
|
||||
if unsafe self.raw.storage === _emptySingleton { return }
|
||||
|
||||
unsafe read {
|
||||
stats.nodeCount += 1
|
||||
|
||||
Reference in new issue
Block a user