diff --git a/Documentation/Proposals/0006-return-errors-from-expect-throws.md b/Documentation/Proposals/0006-return-errors-from-expect-throws.md index 94f25bef8..f7af8a2f7 100644 --- a/Documentation/Proposals/0006-return-errors-from-expect-throws.md +++ b/Documentation/Proposals/0006-return-errors-from-expect-throws.md @@ -105,7 +105,7 @@ is not statically available. The problematic overloads will also be deprecated: -) where E: Error & Equatable +) -> E where E: Error & Equatable -+@available(swift, introduced: 6.0, deprecated: 100000.0, message: "Examine the result of '#expect(throws:)' instead.") ++@available(swift, deprecated: 100000.0, message: "Examine the result of '#expect(throws:)' instead.") +@discardableResult @freestanding(expression) public macro expect( _ comment: @autoclosure () -> Comment? = nil, @@ -115,7 +115,7 @@ is not statically available. The problematic overloads will also be deprecated: -) +) -> (any Error)? -+@available(swift, introduced: 6.0, deprecated: 100000.0, message: "Examine the result of '#require(throws:)' instead.") ++@available(swift, deprecated: 100000.0, message: "Examine the result of '#require(throws:)' instead.") +@discardableResult @freestanding(expression) public macro require( _ comment: @autoclosure () -> Comment? = nil, diff --git a/Sources/Testing/Expectations/Expectation+Macro.swift b/Sources/Testing/Expectations/Expectation+Macro.swift index 83bf045db..7df075475 100644 --- a/Sources/Testing/Expectations/Expectation+Macro.swift +++ b/Sources/Testing/Expectations/Expectation+Macro.swift @@ -375,7 +375,7 @@ public macro require( /// ``expect(throws:_:sourceLocation:performing:)-1hfms`` instead. If the thrown /// error need only equal another instance of [`Error`](https://developer.apple.com/documentation/swift/error), /// use ``expect(throws:_:sourceLocation:performing:)-7du1h`` instead. -@available(swift, introduced: 6.0, deprecated: 100000.0, message: "Examine the result of '#expect(throws:)' instead.") +@available(swift, deprecated: 100000.0, message: "Examine the result of '#expect(throws:)' instead.") @discardableResult @freestanding(expression) public macro expect( _ comment: @autoclosure () -> Comment? = nil, @@ -427,7 +427,7 @@ public macro require( /// /// If `expression` should _never_ throw, simply invoke the code without using /// this macro. The test will then fail if an error is thrown. -@available(swift, introduced: 6.0, deprecated: 100000.0, message: "Examine the result of '#require(throws:)' instead.") +@available(swift, deprecated: 100000.0, message: "Examine the result of '#require(throws:)' instead.") @discardableResult @freestanding(expression) public macro require( _ comment: @autoclosure () -> Comment? = nil,