Tests: Annotate configurationJSON in SwiftTestMain with noisolate

This was causing some warnings, so annotate this argument we aren't
even using with noisolate(unsafe) to make the compiler stop.
This commit is contained in:
Andrew Kaster 2024-11-21 13:19:11 -07:00 committed by Andreas Kling
commit d953c6b451
Notes: github-actions[bot] 2024-11-26 10:01:44 +00:00

View file

@ -13,7 +13,7 @@ func swt_abiv0_getEntryPoint() -> UnsafeRawPointer
@main struct Runner { @main struct Runner {
static func main() async throws { static func main() async throws {
let configurationJSON: UnsafeRawBufferPointer? = nil nonisolated(unsafe) let configurationJSON: UnsafeRawBufferPointer? = nil
let recordHandler: @Sendable (UnsafeRawBufferPointer) -> Void = { _ in } let recordHandler: @Sendable (UnsafeRawBufferPointer) -> Void = { _ in }
let entryPoint = unsafeBitCast(swt_abiv0_getEntryPoint(), to: EntryPoint.self) let entryPoint = unsafeBitCast(swt_abiv0_getEntryPoint(), to: EntryPoint.self)