Skip to content

Conversation

@atrick
Copy link
Contributor

@atrick atrick commented Nov 19, 2024

Preparation for lifetime dependent coroutines and accessors.

Includes a minor fix to BeginApply that I missed in the previous PR.

Add flexibility to mark_dependence diagnostics. This allows SILGen to emit mark_dependence [unresolved] in more places.

These changes are covered by unit tests on the branch that they were pulled from.

isScopeEndingUse is not the same as endsLifetime.
This allows emitting mark_dependence [unresolved] in some cases even if the
diagnostics can't currently handle them.
During SIL parsing, allow `@``lifetime(borrow <argNum>)` on trivial arguments.
Mark unresolved mark_depends as nonescaping so they don't leak into the
optimizer pipeline.
@atrick
Copy link
Contributor Author

atrick commented Nov 19, 2024

@swift-ci test

@atrick atrick merged commit e4e0760 into swiftlang:main Nov 19, 2024
5 checks passed
@atrick atrick deleted the handle_markdep branch November 19, 2024 18:22
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