Skip to content

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

Merged
grynspan merged 1 commit into
mainfrom
jgrynspan/remove-introduced-clauses-from-expect-throws-deprecation-attributes
Jan 4, 2025
Merged

Remove the introduced: 6.0 argument from the to-be-deprecated attributes on #expect(performing:throws:) and #require(performing:throws:).#881
grynspan merged 1 commit into
mainfrom
jgrynspan/remove-introduced-clauses-from-expect-throws-deprecation-attributes

Conversation

@grynspan

@grynspan grynspan commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

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

grynspan commented Jan 3, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@grynspan

grynspan commented Jan 4, 2025

Copy link
Copy Markdown
Contributor Author

@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
@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