Skip to content

Commit cc801f0

Browse files
committed
[stdlib] a less public association key
1 parent 94be125 commit cc801f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/core/StringGuts.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,10 @@ extension _StringGuts {
421421
extension _StringGuts {
422422

423423
private static var associationKey: UnsafeRawPointer {
424+
private struct AssociationKey {}
424425
// We never dereference this, we only use this address as a unique key
425426
unsafe unsafeBitCast(
426-
ObjectIdentifier(__StringStorage.self),
427+
ObjectIdentifier(AssociationKey.self),
427428
to: UnsafeRawPointer.self
428429
)
429430
}

0 commit comments

Comments
 (0)