[ContainersPreview] Borrow ⟹ Ref

Also update the type’s public API surface to reflect SE-0519, leaving deprecated aliases for the old names.
This commit is contained in:
Karoy Lorentey committed 2026-05-06 18:00:13 -07:00
1 parent 90d8735151
commit a6fd64697a
20 files changed
+239 -141

No files matched your search

@@ -46,7 +46,7 @@ extension UniqueArray where Element: ~Copyable {
@inlinable
@inline(__always)
@_lifetime(borrow self)
public func borrowElement(at index: Int) -> Borrow<Element> {
public func borrowElement(at index: Int) -> Ref<Element> {
_storage.borrowElement(at: index)
}
}