-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SE-0481] Allow weak let and make weak captures immutable #80440
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
nickolas-pohilets
merged 15 commits into
swiftlang:main
from
nickolas-pohilets:mpokhylets/weak-let
Jun 5, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
49b706a
Added experimental feature to allow weak let and immutable weak captures
nickolas-pohilets 8af42c2
Make sure immutable weak captures are captured by without boxing
nickolas-pohilets b7b70f8
Added unit tests for Sema
nickolas-pohilets 81da20f
Enable warnings about never mutated `weak var`.
nickolas-pohilets 2610610
Updated existing tests to run with feature enabled
nickolas-pohilets 8c37d25
Added tests for let properties to Mirror
nickolas-pohilets 5a69c8e
Added REQUIRES: swift_feature_WeakLet
nickolas-pohilets 3e0de86
Removed the feature and made changes unconditional
nickolas-pohilets 4aa2847
Fixed some tests
nickolas-pohilets b138c2c
Updated logic for diagnosting implicit self capture to handle immutab…
nickolas-pohilets 04166e2
Fixed some tests
nickolas-pohilets 3de9109
Updated test to reflect removal of redundant boxing of unowned refere…
nickolas-pohilets de3a87c
Merge branch 'main' into mpokhylets/weak-let
nickolas-pohilets 598d470
Update diagnostics spelling after the merge
nickolas-pohilets 847a7d2
Update comments
nickolas-pohilets 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
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.