@@ -215,7 +215,6 @@ extension InlineArray where Element: ~Copyable {
215215 @available ( SwiftStdlib 6 . 2 , * )
216216 @_alwaysEmitIntoClient
217217 public init < E: Error > ( _ body: ( Index ) throws ( E ) -> Element ) throws ( E) {
218- #if $BuiltinEmplaceTypedThrows
219218 _storage = try Builtin . emplace { ( rawPtr) throws ( E) -> ( ) in
220219 let buffer = unsafe Self. _initializationBuffer ( start: rawPtr)
221220
@@ -234,9 +233,6 @@ extension InlineArray where Element: ~Copyable {
234233 }
235234 }
236235 }
237- #else
238- fatalError( )
239- #endif
240236 }
241237
242238 /// Initializes every element in this array, by calling the given closure
@@ -264,7 +260,6 @@ extension InlineArray where Element: ~Copyable {
264260 first: consuming Element ,
265261 next: ( borrowing Element ) throws ( E ) -> Element
266262 ) throws ( E) {
267- #if $BuiltinEmplaceTypedThrows
268263 // FIXME: We should be able to mark 'Builtin.emplace' as '@once' or something
269264 // to give the compiler enough information to know we will only run
270265 // it once so it can consume the capture. For now, we use an optional
@@ -298,17 +293,13 @@ extension InlineArray where Element: ~Copyable {
298293 }
299294 }
300295 }
301- #else
302- fatalError ( )
303- #endif
304296 }
305297
306298 @available( SwiftStdlib 6.2 , * )
307299 @_alwaysEmitIntoClient
308300 public init< E : Error> (
309301 initializingWith initializer: ( inout OutputSpan< Element > ) throws( E) - > Void
310302 ) throws( E) {
311- #if $BuiltinEmplaceTypedThrows
312303 _storage = try Builtin . emplace { ( rawPtr) throws ( E) -> ( ) in
313304 let buffer = unsafe Self. _initializationBuffer ( start: rawPtr)
314305 _internalInvariant ( Self . count == buffer. count)
@@ -317,9 +308,6 @@ extension InlineArray where Element: ~Copyable {
317308 let initialized = unsafe output. finalize ( for: buffer)
318309 _precondition ( count == initialized, " InlineArray initialization underflow " )
319310 }
320- #else
321- fatalError ( )
322- #endif
323311 }
324312}
325313
0 commit comments