You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove #expect(throws: Never.self) and #require(throws: Never.self) as distinct overloads. (#661)
`#expect(throws: Never.self)` and `#require(throws: Never.self)` do not
need to be specified as separate overloads. This PR removes them as
distinct symbols:
- The documentation for `#expect(throws: Never.self)` is merged into the
documentation for `#expect(throws:)`.
- The diagnostic emitted when using `#require(throws: Never.self)` is
lowered from a deprecation warning to a macro-generated custom warning.
This change has no other compile-time or runtime effects: code that
passes `Never.self` to either macro will continue to compile, and macros
cannot be referenced so there is no risk of source-level breakage like
there might be from a function signature change.
### 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.
0 commit comments