-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update lifetime dependence syntax and inference #72506
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
Conversation
42632b4
to
22b68c7
Compare
@swift-ci test |
@swift-ci test windows |
Swift-syntax work is pending |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, this is a lot of nice work in one day! I don't see anything that needs to be changed in this PR.
@swift-ci test |
… pitch Pitch - swiftlang/swift-evolution#2305 Changes highlights: dependsOn(paramName) and dependsOn(scoped argName) syntax dependsOn(paramName) -> copy lifetime dependence for all parameters/self except when we have Escapable parameters/self, we assign scope lifetime dependence. Allow lifetime dependence on parameters without ownership modifier. Always infer copy lifetime dependence except when we have Escapable parameters/self, we infer scope lifetime dependence. Allow lifetime dependence inference on parameters without ownership modifier.
Please test with following pull request: @swift-ci Please test |
Please test with following pull request: @swift-ci Please test macOS platform |
1 similar comment
Please test with following pull request: @swift-ci Please test macOS platform |
Pitch - swiftlang/swift-evolution#2305
Changes highlights:
dependsOn(paramName) and dependsOn(scoped paramName) syntax
dependsOn(paramName) -> copy lifetime dependence for all parameters/self except when we have Escapable parameters/self, we assign scope lifetime dependence.
Allow lifetime dependence on parameters without ownership modifier.
Always infer copy lifetime dependence except when we have
Escapable parameters/self, we infer scope lifetime dependence.
Allow lifetime dependence inference on parameters without ownership modifier.