mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[BasicContainers, ContainersPreview, DequeModule] More SuppressedAssociatedTypesWithDefaults fixups
This commit is contained in:
26 files changed
+129
-42
No files matched your search
@@ -392,7 +392,9 @@ extension UniqueArray where Element: ~Copyable {
|
||||
removing subrange: Range<Int>,
|
||||
addingCount newItemCount: Int,
|
||||
from producer: inout P
|
||||
) throws(E) {
|
||||
) throws(E)
|
||||
where P.Element: ~Copyable
|
||||
{
|
||||
try replace(removing: subrange, addingCount: newItemCount) { target throws(E) in
|
||||
while !target.isFull, try producer.generate(into: &target) {
|
||||
// Do nothing
|
||||
|
||||
Reference in new issue
Block a user