From 3838a9c2020536f8dc9fb1bf80c3fa2bacd552e6 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Fri, 20 Sep 2024 20:16:55 -0400 Subject: [PATCH] Avoid accidental use of `#_sourceLocation` in the library target. We can't use our own macros in the library target directly. Resolves rdar://136385550. --- Sources/Testing/ExitTests/ExitTest.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Testing/ExitTests/ExitTest.swift b/Sources/Testing/ExitTests/ExitTest.swift index 2a058a7f9..5526a0d94 100644 --- a/Sources/Testing/ExitTests/ExitTest.swift +++ b/Sources/Testing/ExitTests/ExitTest.swift @@ -470,7 +470,7 @@ extension ExitTest { } catch { // NOTE: an error caught here indicates an I/O problem. // TODO: should we record these issues as systemic instead? - Issue.record(error) + Issue(for: error).record() return } @@ -482,7 +482,7 @@ extension ExitTest { } catch { // NOTE: an error caught here indicates a decoding problem. // TODO: should we record these issues as systemic instead? - Issue.record(error) + Issue(for: error).record() } } }