Skip to content

[6.0][region-isolation] Change capturing a value into an async let that is not further sent into an actor isolated function to use a new style error. #74879

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

Merged

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jul 1, 2024

Explanation: This PR cleans up the async let diagnostic so that we emit a new style "named" error instead of a type based error.

Radars:

  • rdar://130915737

Original PRs:

Risk: Low. Just modifies a diagnostic to improve readability and quality of implementation.
Testing: Added tests to the compiler.
Reviewer: @ktoso

gottesmm added 3 commits July 1, 2024 16:47
…n also work with TransferNonSendable versions of the error.

This asserts only option is an option to make it quicker/easier to triage
unknown pattern match errors by aborting when we emit it (allowing one to
immediately drop into the debugger at that point).

Previously, it only happened for errors in RegionAnalysis not in
TransferNonSendable itself.

(cherry picked from commit 78d74cf)
… not further sent into an actor isolated function to use a new style error.

Just going through and fixing sending errors.

rdar://130915737
(cherry picked from commit 02e003f)
…oved cleanup transfernonsendable_asynclet.swift. NFC.

(cherry picked from commit 31df5f2)
@gottesmm gottesmm requested a review from a team as a code owner July 1, 2024 23:50
@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 1, 2024

@swift-ci test

@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 2, 2024

@swift-ci test

@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 2, 2024

@swift-ci test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for including the cherry-pick of the follow up as well. Lgtm

@gottesmm gottesmm merged commit cd8bfe4 into swiftlang:release/6.0 Jul 3, 2024
5 checks passed
@gottesmm gottesmm deleted the release/6.0-rdar130915737-part1 branch July 3, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants