Skip to content

[CoroutineAccessors] Only reference when available #80828

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 2 commits into from
Apr 17, 2025

Conversation

nate-chandler
Copy link
Contributor

Don't bind references to storage to use (new ABI) coroutine accessors unless they're guaranteed to be available. For example, when building against a resilient module that has coroutine accessors, they can only be used if the deployment target is >= the version of Swift that includes the feature.

rdar://148783895

@nate-chandler nate-chandler force-pushed the rdar148783895 branch 2 times, most recently from eaa63f1 to 547a820 Compare April 16, 2025 02:36
Several callers of `AbstractStorageDecl::getAccessStrategy` only cared
about whether the the access would be via physical storage.  Before
adding more arguments to `getAccessStrategy` for which such callers
would have to pass a sentinel value, add a convenience method for this.
Don't bind references to storage to use (new ABI) coroutine accessors
unless they're guaranteed to be available.  For example, when building
against a resilient module that has coroutine accessors, they can only
be used if the deployment target is >= the version of Swift that
includes the feature.

rdar://148783895
@nate-chandler nate-chandler force-pushed the rdar148783895 branch 2 times, most recently from 3723b43 to 7697a49 Compare April 16, 2025 17:55
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test source compatibility

@nate-chandler nate-chandler marked this pull request as ready for review April 17, 2025 03:38
@nate-chandler nate-chandler merged commit 898075a into swiftlang:main Apr 17, 2025
6 of 7 checks passed
@nate-chandler nate-chandler deleted the rdar148783895 branch April 17, 2025 03:38
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.

2 participants