Skip to content

Commit 992cd27

Browse files
authored
Remove a stray throws in the declaration of __requiringUnsafe(). (#1340)
This function is not meant to handle `try`, just `unsafe`. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 08728d7 commit 992cd27

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)