Skip to content

Remove the introduced: 6.0 argument from the to-be-deprecated attributes on #expect(performing:throws:) and #require(performing:throws:). #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jan 3, 2025

The introduced: 6.0 argument is causing the compiler to error out when building in earlier language modes. It isn't syntactically necessary and our DocC bundle provides the equivalent documentation info. So just drop it.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…butes on

`#expect(performing:throws:)` and `#require(performing:throws:)`.

The `introduced: 6.0` argument is causing the compiler to error out when
building in earlier language modes. It isn't syntactically necessary and our
DocC bundle provides the equivalent documentation info. So just drop it.
@grynspan grynspan added bug 🪲 Something isn't working documentation 📚 Improvements or additions to documentation public-api Affects public API labels Jan 3, 2025
@grynspan grynspan added this to the Swift 6.x milestone Jan 3, 2025
@grynspan grynspan self-assigned this Jan 3, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Jan 3, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Jan 4, 2025

@briancroom reviewed externally but didn't click the green button.

Merging as self-reviewed!

@grynspan grynspan added the self-reviewed PR was self-reviewed by a code owner label Jan 4, 2025
@grynspan grynspan merged commit b85decc into main Jan 4, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/remove-introduced-clauses-from-expect-throws-deprecation-attributes branch January 4, 2025 14:29
grynspan added a commit that referenced this pull request Jan 4, 2025
…butes on `#expect(performing:throws:)` and `#require(performing:throws:)`. (#881)
grynspan added a commit that referenced this pull request Jan 6, 2025
… attributes on `#expect(performing:throws:)` and `#require(performing:throws:)`. (#889)

- **Explanation**: Fix spurious errors building with pre-6.0 language
modes when using `#expect(performing:throws:)` or
`#require(performing:throws:)`.
- **Scope**: Tests written in 5.x language mode that use the
to-be-deprecated expectation macros.
  - **Issues**: N/A
- **Original PRs**: #881
  - **Risk**: Low
  - **Testing**: Automated testing/tested at desk.
- **Reviewers**: @briancroom @stmontgomery @SeanROlszewski
@suzannaratcliff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working documentation 📚 Improvements or additions to documentation public-api Affects public API self-reviewed PR was self-reviewed by a code owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant