Skip to content

Commit ff58dc6

Browse files
committed
Use other feature syntax
1 parent 7480668 commit ff58dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/InlineArray.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ extension InlineArray where Element: ~Copyable {
105105
@available(SwiftStdlib 6.2, *)
106106
@_alwaysEmitIntoClient
107107
public init<E: Error>(_ body: (Int) throws(E) -> Element) throws(E) {
108-
#if hasFeature(BuiltinEmplaceTypedThrows)
108+
#if $BuiltinEmplaceTypedThrows
109109
self = try Builtin.emplace { (rawPtr) throws(E) -> () in
110110
let buffer = InlineArray<count, Element>._initializationBuffer(
111111
start: rawPtr
@@ -153,7 +153,7 @@ extension InlineArray where Element: ~Copyable {
153153
first: consuming Element,
154154
next: (borrowing Element) throws(E) -> Element
155155
) throws(E) {
156-
#if hasFeature(BuiltinEmplaceTypedThrows)
156+
#if $BuiltinEmplaceTypedThrows
157157
// FIXME: We should be able to mark 'Builtin.emplace' as '@once' or something
158158
// to give the compiler enough information to know we will only run
159159
// it once so it can consume the capture. For now, we use an optional

0 commit comments

Comments
 (0)