Skip to content

[6.0] Revert "[region-isolation] Make "unknown pattern error" always an error #75364

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
merged 1 commit into from
Jul 19, 2024

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jul 19, 2024

Explanation: This reverts commit b63781f.

We found some cases where due to malformed IR that we allow through due to either us compiling for strict-concurrency=complete+swift-5 or swift-6 + preconcurrency, that we can actually have actor isolation mismatch. I am going to in a subsequent commit add a better phrasing here. But for now, just undo the conversion from error -> warning.

Radars:

  • rdar://131757602

Original PRs:

Risk: Low. This is just reverting a diagnostic from being an error in swift 5 + strict-concurrency to being a warning.
Testing: This is a pure revert whose correctness can be seen just by reading the code, so there isn't really a test. Additionally, we do not emit this error in any of our current tests (since we fix them), so there isn't something I can check to see if it is a warning or error.
Reviewer: @ktoso

…or."

This reverts commit b63781f.

We found some cases where due to malformed IR that we allow through due to
either us compiling for strict-concurrency=complete+swift-5 or swift-6 +
preconcurrency, that we can actually have actor isolation mismatch. I am going
to in a subsequent commit add a better phrasing here. But for now, just undo the
conversion from error -> warning.

rdar://131757602
@gottesmm gottesmm requested a review from a team as a code owner July 19, 2024 05:14
@gottesmm
Copy link
Contributor Author

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

Sounds like a good idea, discussed off thread a bit. lgtm

@gottesmm gottesmm enabled auto-merge July 19, 2024 05:38
@gottesmm gottesmm merged commit 9c40c25 into swiftlang:release/6.0 Jul 19, 2024
5 checks passed
@gottesmm gottesmm deleted the release/6.0-rdar131757602 branch July 19, 2024 18:19
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