Skip to content
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

[6.0][Concurrency] Don't attempt to diagnose GlobalConcurrency issues wi… #74624

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 21, 2024

…th deserialized variable/properties

(cherry picked from commit aae15c3)

…th deserialized variable/properties

If the property comes from a different module the compiler shouldn't
attempt to diagnose `GlobalIsolation` problems based in the current
module flags otherwise it would create issues when i.e. a variable/property
from a module built with `-swift-version 5` that gets referenced
by a module that is built with `-swift-version 6` that has stricter
local concurrency requirements.

See https://forums.swift.org/t/swift-6-language-mode-being-passed-to-dependencies/72622
for further discussion.

A better solution would be to move the check to `ActorIsolationChecker`
or `DeclChecker` but that would be too risky for 6.0.

(cherry picked from commit aae15c3)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Jun 21, 2024
@xedin xedin requested a review from hborla June 21, 2024 17:12
@xedin xedin requested a review from a team as a code owner June 21, 2024 17:12
@xedin
Copy link
Contributor Author

xedin commented Jun 21, 2024

@swift-ci please test

@xedin xedin merged commit 296af88 into swiftlang:release/6.0 Jun 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants