Skip to content

Commit 1dc4296

Browse files
authored
Merge pull request #2348 from gottesmm/rdar164042741
[concurrency] Use nonisolated(unsafe) to quiet an error in runAsync in the tests.
2 parents da5da8e + 2862db1 commit 1dc4296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftSourceKitPluginTests/SwiftSourceKitPluginTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ private struct ExpectationNotFulfilledError: Error {}
21732173

21742174
/// Run the given async block and block the current function until `body` terminates.
21752175
private func runAsync<T: Sendable>(_ body: @escaping @Sendable () async throws -> T) throws -> T {
2176-
var result: Result<T, Error>!
2176+
nonisolated(unsafe) var result: Result<T, Error>!
21772177
let expectation = XCTestExpectation(description: "")
21782178
Task {
21792179
do {

0 commit comments

Comments
 (0)