Skip to content

Commit

Permalink
Update borrowing syntax in lifetime_dependence_optional.swift
Browse files Browse the repository at this point in the history
Fixes rdar://126415070 (Swift CI: macosx-arm64 -
SILOptimizer/lifetime_dependence_optional.swift - Many public bots)

(cherry picked from commit afc1670)
  • Loading branch information
atrick committed Apr 14, 2024
1 parent 2a6cd31 commit 1d5ef2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/SILOptimizer/lifetime_dependence_optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extension Nillable where Wrapped: ~Copyable {
_ transform: (borrowing Wrapped) throws(E) -> U
) throws(E) -> U? {
switch self {
case .some(_borrowing y):
case .some(borrowing y):
return .some(try transform(y))
case .none:
return .none
Expand All @@ -83,7 +83,7 @@ extension Nillable where Wrapped: ~Copyable {
_ transform: (borrowing Wrapped) throws(E) -> U?
) throws(E) -> U? {
switch self {
case .some(_borrowing y):
case .some(borrowing y):
return try transform(y)
case .none:
return .none
Expand Down

0 comments on commit 1d5ef2b

Please sign in to comment.