Skip to content

Commit 9ff0148

Browse files
authored
Enable 'InferSendableFromCaptures' upcoming feature and resolve new build failures (#413)
1 parent 1fa9d96 commit 9ff0148

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ extension Array where Element == PackageDescription.SwiftSetting {
118118
.unsafeFlags(["-require-explicit-sendable"]),
119119
.enableExperimentalFeature("StrictConcurrency"),
120120
.enableUpcomingFeature("ExistentialAny"),
121+
.enableUpcomingFeature("InferSendableFromCaptures"),
121122

122123
.enableExperimentalFeature("AccessLevelOnImport"),
123124
.enableUpcomingFeature("InternalImportsByDefault"),

Tests/TestingTests/MiscellaneousTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ struct TestsWithStaticMemberAccessBySelfKeyword {
165165
@Test(.hidden, arguments: Self.f(max: 100))
166166
func g(i: Int) {}
167167

168-
@Test(.hidden, arguments: [UncheckedSendable(rawValue: Self.f(max:))])
169-
func h(i: UncheckedSendable<(Int) -> Range<Int>>) {}
168+
@Test(.hidden, arguments: [Self.f(max:)])
169+
func h(i: @Sendable (Int) -> Range<Int>) {}
170170

171171
struct Nested {
172172
static let x = 0 ..< 100

0 commit comments

Comments
 (0)