-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SE-0365] Fix issue where implicit self was unexpectedly disallowed in nested closures #70575
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
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8c5f783
[SE-0365] Fix issue where implicit self was unexpectedly disallowed i…
calda 94dcf9b
Fix edge cases related to nested autoclosures, invalid weak self unwr…
calda f21aee7
Improve quality of 'capture self explicitly to enable implicit self i…
calda 97178b2
Look up the outer self decl via the capture's parent initializer inst…
calda 3315cab
Merge branch 'main' into cal--fix-70089
calda 3fcc5a8
Always validate self capture
calda 74a33eb
Improve 'shouldOnlyWarn' logic
calda 985e8d9
Update DeclContext::getInnermostClosureForSelfCapture to return a Clo…
calda e4e8078
Simplify autoclosure check in shouldOnlyWarn
calda 7e95f9b
Fix unexpected error by simplifying outermost capture validation
calda d17bc35
Refactor and simplify shouldOnlyWarn logic
calda 7d897fd
Fix validation for async let thunks
calda b525b9c
Merge tag 'swift-DEVELOPMENT-SNAPSHOT-2024-05-01-a' of github.com:app…
calda 6b36f78
Remove unused validateOutermostCapture param
calda da144f7
Fix outdated usage of isKnownNoEscape
calda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.