Skip to content

[region-isolation] Clean up use after transfer error to use the dynamic isolation information of the transfered operand value in its diagnostic message. #72510

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 Mar 22, 2024

As an example of the change:

// expected-note @-1 {{'x' is transferred from nonisolated caller to main actor-isolated callee. Later uses in caller could race with potential uses in callee}}

-->

// expected-note @-1 {{transferring disconnected 'x' to main actor-isolated callee could cause races in between callee main actor-isolated and local nonisolated uses}}

Part of the reason I am doing this is that I am going to be ensuring that we handle a bunch more cases and I wanted to fix this diagnostic before I added more incaranations of it to the tests.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…ic isolation information of the transfered operand value in its diagnostic message.

As an example of the change:

-  // expected-note @-1 {{'x' is transferred from nonisolated caller to main actor-isolated callee. Later uses in caller could race with potential uses in callee}}
+  // expected-note @-1 {{transferring disconnected 'x' to main actor-isolated callee could cause races in between callee main actor-isolated and local nonisolated uses}}

Part of the reason I am doing this is that I am going to be ensuring that we
handle a bunch more cases and I wanted to fix this diagnostic before I added
more incaranations of it to the tests.
@gottesmm gottesmm force-pushed the pr-380a7b07837e5ce43e7cad28e3f620a6776599f7 branch from 00dc538 to 357a53a Compare March 22, 2024 20:13
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge March 22, 2024 22:30
@gottesmm gottesmm merged commit 9fcd80c into swiftlang:main Mar 22, 2024
@gottesmm gottesmm deleted the pr-380a7b07837e5ce43e7cad28e3f620a6776599f7 branch March 22, 2024 23:27
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.

1 participant