Skip to content

[Concurrency] Fix a few issues with actor-isolated inout argument diagnostics. #69083

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
Oct 11, 2023

Conversation

hborla
Copy link
Member

@hborla hborla commented Oct 9, 2023

ActorIsolationChecker's apply stack was not considering LookupExpr, which caused bogus diagnostics for inout arguments that happen to be subexpressions of async function calls. Similarly, inout arguments to async subscript calls were not diagnosed because the subscript application was not tracked in the apply stack.

There's still an issue with async computed getter calls because the type-checked AST does not have an InOutExpr for the base expression.

Resolves rdar://115863944, resolves #60302, resolves #59583.

@hborla
Copy link
Member Author

hborla commented Oct 9, 2023

@swift-ci please smoke test

…iagnostics.

ActorIsolationChecker's apply stack was not considering LookupExpr, which caused
bogus diagnostics for inout arguments that happen to be subexpressions of async
function calls. Similarly, inout arguments to async subscript calls were not
diagnosed because the subscript application was not tracked in the apply stack.

There's still an issue with async computed getter calls because the type-checked
AST does not have an InOutExpr for the base expression.
@hborla hborla force-pushed the inout-async-error branch from 1e683a6 to 17ac5fe Compare October 10, 2023 01:32
@hborla
Copy link
Member Author

hborla commented Oct 10, 2023

@swift-ci please smoke test

2 similar comments
@hborla
Copy link
Member Author

hborla commented Oct 10, 2023

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Oct 10, 2023

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Oct 11, 2023

@swift-ci please smoke test Windows

@hborla
Copy link
Member Author

hborla commented Oct 11, 2023

@swift-ci please test Windows

@hborla hborla merged commit 82272c8 into swiftlang:main Oct 11, 2023
@hborla hborla deleted the inout-async-error branch October 11, 2023 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant