Skip to content

Commit 5609657

Browse files
authored
Merge pull request #73028 from atrick/update-lifedep-test
Update borrowing syntax in lifetime_dependence_optional.swift
2 parents 1b36983 + afc1670 commit 5609657

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/SILOptimizer/lifetime_dependence_optional.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
// REQUIRES: asserts
1010
// REQUIRES: swift_in_compiler
1111

12-
// REQUIRES: rdar126415070
13-
1412
// Simply test that it is possible for a module to define a pseudo-Optional type without triggering any compiler errors.
1513

1614
public protocol ExpressibleByNilLiteral: ~Copyable & ~Escapable {
@@ -61,7 +59,7 @@ extension Nillable where Wrapped: ~Copyable {
6159
_ transform: (borrowing Wrapped) throws(E) -> U
6260
) throws(E) -> U? {
6361
switch self {
64-
case .some(_borrowing y):
62+
case .some(borrowing y):
6563
return .some(try transform(y))
6664
case .none:
6765
return .none
@@ -85,7 +83,7 @@ extension Nillable where Wrapped: ~Copyable {
8583
_ transform: (borrowing Wrapped) throws(E) -> U?
8684
) throws(E) -> U? {
8785
switch self {
88-
case .some(_borrowing y):
86+
case .some(borrowing y):
8987
return try transform(y)
9088
case .none:
9189
return .none

0 commit comments

Comments
 (0)