From d953c6b451ed151a62bdd492bda0ddd76feea7d3 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 21 Nov 2024 13:19:11 -0700 Subject: [PATCH] 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. --- Tests/Resources/SwiftTestMain.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Resources/SwiftTestMain.swift b/Tests/Resources/SwiftTestMain.swift index 784d4c19b9c..3b18cc55541 100644 --- a/Tests/Resources/SwiftTestMain.swift +++ b/Tests/Resources/SwiftTestMain.swift @@ -13,7 +13,7 @@ func swt_abiv0_getEntryPoint() -> UnsafeRawPointer @main struct Runner { static func main() async throws { - let configurationJSON: UnsafeRawBufferPointer? = nil + nonisolated(unsafe) let configurationJSON: UnsafeRawBufferPointer? = nil let recordHandler: @Sendable (UnsafeRawBufferPointer) -> Void = { _ in } let entryPoint = unsafeBitCast(swt_abiv0_getEntryPoint(), to: EntryPoint.self)