mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[PersistentCollections] Fix building with library stability enabled
Building this package with library stability enabled is entirely unsupported, but let’s add a few @frozen attributes to fix such builds anyway. This package is explicitly not ABI stable; the @frozen attribute does not mean a guarantee to leave layout unchanged in future revisions.
This commit is contained in:
1 parent
e74283a2fa
commit
5783b82d72
3 files changed
+3
No files matched your search
@@ -34,6 +34,7 @@
|
||||
/// in a fixed-size array; this would speed up walking over the tree, but it
|
||||
/// would considerably embiggen the size of the path construct.)
|
||||
@usableFromInline
|
||||
@frozen
|
||||
internal struct _UnsafePath {
|
||||
@usableFromInline
|
||||
internal var ancestors: _AncestorSlots
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@frozen // Not really -- this package is not at all ABI stable
|
||||
public struct PersistentDictionary<Key: Hashable, Value> {
|
||||
@usableFromInline
|
||||
internal typealias _Node = PersistentCollections._Node<Key, Value>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
@frozen // Not really -- this package is not at all ABI stable
|
||||
public struct PersistentSet<Element: Hashable> {
|
||||
@usableFromInline
|
||||
internal typealias _Node = PersistentCollections._Node<Element, Void>
|
||||
|
||||
Reference in new issue
Block a user