Skip to content

Commit d62261f

Browse files
committed
Remove a stray throws in the declaration of __requiringUnsafe().
This function is not meant to handle `try`, just `unsafe`.
1 parent 192dc75 commit d62261f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Test+Macro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ extension Test {
556556
///
557557
/// - Warning: This function is used to implement the `@Test` macro. Do not use
558558
/// it directly.
559-
@unsafe @inlinable public func __requiringUnsafe<T>(_ value: consuming T) throws -> T where T: ~Copyable {
559+
@unsafe @inlinable public func __requiringUnsafe<T>(_ value: consuming T) -> T where T: ~Copyable {
560560
value
561561
}
562562

0 commit comments

Comments
 (0)