[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:
Karoy Lorentey committed 2022-10-19 19:33:33 -07:00
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>