Disambiguate ContainersPreview and stdlib

Adds trailing underscores to the BorrowingSequence protocols and
requirements, in order to allow both parallel conformances and
the ability to evolve the requirements in this package.
This commit is contained in:
Nate Cook committed 2026-03-27 07:41:32 -05:00
1 parent 4c04822689
commit a99a015934
49 files changed
+350 -363

No files matched your search

@@ -105,7 +105,7 @@ extension UniqueArray /*where Element: Copyable*/ {
@available(SwiftStdlib 6.4, *)
@_alwaysEmitIntoClient
@inline(__always)
public init<Source: BorrowingSequence<Element> & ~Copyable & ~Escapable>(
public init<Source: BorrowingSequence_<Element> & ~Copyable & ~Escapable>(
capacity: Int? = nil,
copying contents: borrowing Source
) {
@@ -142,7 +142,7 @@ extension UniqueArray /*where Element: Copyable*/ {
@available(SwiftStdlib 6.4, *)
@_alwaysEmitIntoClient
@inline(__always)
public init<Source: BorrowingSequence<Element> & Sequence<Element>>(
public init<Source: BorrowingSequence_<Element> & Sequence<Element>>(
capacity: Int? = nil,
copying contents: Source
) {