Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[6.0][Availability] Diagnose unavailable conformances inUnderlyingToOpaqueExpr.#73697

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@hborla
Copy link
Member

@hborlahborla commentedMay 17, 2024
edited
Loading

  • Explanation: The compiler was not diagnosing unavailable conformances used for opaque result types. This changes the availability checker to check substitution maps of underlying values for opaque result types to diagnose unavailable conformances. This change also makes sureSendable availability diagnostics are errors in Swift 6 mode.
  • Scope: Impacts opaque result types whose underlying types have unavailable conformances or missingSendable conformances.
  • Issue: rdar://125421098,Opaque return type sendability checking hole #72926
  • Risk: Low. This could cause some miscompiling code to fail to build, but the most likely case of code violating these rules is forSendable, which is staged in as a warning until Swift 6 mode.
  • Testing: Added new tests.
  • Reviewer:@slavapestov@tshortli
  • Main branch PR:[Availability] Diagnose unavailable conformances inUnderlyingToOpaqueExpr. #73695

…eExpr.Change the availability checker to check substitution maps of underlyingvalues for opaque result types to diagnose unavailable conformances. Thischange also makes sure `Sendable` availability diagnostics are errors inSwift 6 mode.(cherry picked from commit1ec5808)
@hborlahborla requested a review froma team as acode ownerMay 17, 2024 06:10
@hborla
Copy link
MemberAuthor

@swift-ci please test

@hborlahborla merged commita87fdfc intoswiftlang:release/6.0May 17, 2024
@hborlahborla deleted the 6.0-opaque-type-conformance-availability branchMay 17, 2024 17:17
@EMMWIS
Copy link

Zrzut ekranu_28-3-2025_231549_developer apple com

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nkcsgexinkcsgexinkcsgexi approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@hborla@EMMWIS@nkcsgexi

[8]ページ先頭

©2009-2025 Movatter.jp