Skip to content

[6.2, LifetimeDependenceMutableAccessors] defensive feature flag #80847

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

glessard
Copy link
Contributor

@glessard glessard commented Apr 16, 2025

Adds a feature flag for mutable getters that return non-escapable results.

The feature flag introduced here is intended to guard mutating accessors that return non-escapable types, because this combination crashes an older version of the compiler as it parses the swiftinterface file.

Addresses rdar://149227278

This is a cherry-pick of #80831
Reviewed by @porglezomp and @atrick

@glessard glessard added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Apr 16, 2025
@glessard glessard requested a review from a team as a code owner April 16, 2025 05:28
@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard requested review from stephentyrone and tbkka April 17, 2025 16:27
@glessard glessard merged commit e9b21cf into swiftlang:release/6.2 Apr 29, 2025
5 checks passed
@glessard glessard deleted the rdar149227278-nonescapable-mutating-accessor-62 branch April 29, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants