From d62261fa8c55a8f544b65ca7b487ad1dd200b7c1 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Thu, 25 Sep 2025 14:56:34 -0400 Subject: [PATCH] Remove a stray `throws` in the declaration of `__requiringUnsafe()`. This function is not meant to handle `try`, just `unsafe`. --- Sources/Testing/Test+Macro.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Testing/Test+Macro.swift b/Sources/Testing/Test+Macro.swift index 023ee5d17..78464cee8 100644 --- a/Sources/Testing/Test+Macro.swift +++ b/Sources/Testing/Test+Macro.swift @@ -556,7 +556,7 @@ extension Test { /// /// - Warning: This function is used to implement the `@Test` macro. Do not use /// it directly. -@unsafe @inlinable public func __requiringUnsafe(_ value: consuming T) throws -> T where T: ~Copyable { +@unsafe @inlinable public func __requiringUnsafe(_ value: consuming T) -> T where T: ~Copyable { value }