From c73fa0cf97f2d94806d0073c7a0677762d1e1102 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 9 Aug 2023 15:52:37 -0700 Subject: [PATCH] Revert "Try using withContiguousStorageIfAvailable in RangeReplaceableCollection.append(contentsOf:) before falling back to a slow element-by-element loop. Fixes rdar://109059874" This reverts commit 465aa22b81d96514f1813787fdfe9f23375deadc. --- stdlib/public/core/RangeReplaceableCollection.swift | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/stdlib/public/core/RangeReplaceableCollection.swift b/stdlib/public/core/RangeReplaceableCollection.swift index 44c0df62aa7e5..91d336c588627 100644 --- a/stdlib/public/core/RangeReplaceableCollection.swift +++ b/stdlib/public/core/RangeReplaceableCollection.swift @@ -453,15 +453,8 @@ extension RangeReplaceableCollection { @inlinable public mutating func append(contentsOf newElements: __owned S) where S.Element == Element { - - let done:Void? = newElements.withContiguousStorageIfAvailable { - replaceSubrange(endIndex..