Skip to content

[4.2] [MiscDiagnostics] Emit a deprecation warning for some writes through … #17506

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 3 commits into from
Jun 27, 2018
Merged

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Jun 26, 2018

…literal keypaths.

We incorrectly allowed some keypaths to be inferred as writable
keypaths in Swift 3/4 modes. This no longer happens when
-swift-version 5 is specified.

This warning is a limited attempt at providing some advanced notice of
code that will break, only in the cases where the keypath is a direct
argument to a keypath subscript write.

Fixes: rdar://problem/40068274
(cherry picked from commit fea720f)

rudkx added 2 commits June 25, 2018 23:41
…literal keypaths.

We incorrectly allowed some keypaths to be inferred as writable
keypaths in Swift 3/4 modes. This no longer happens when
-swift-version 5 is specified.

This warning is a limited attempt at providing some advanced notice of
code that will break, only in the cases where the keypath is a direct
argument to a keypath subscript write.

Fixes: rdar://problem/40068274
(cherry picked from commit fea720f)
@rudkx rudkx changed the title Rdar40068274 4.2 [4.2] [MiscDiagnostics] Emit a deprecation warning for some writes through … Jun 26, 2018
@rudkx
Copy link
Contributor Author

rudkx commented Jun 26, 2018

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 607bb4e

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 607bb4e

@rudkx
Copy link
Contributor Author

rudkx commented Jun 26, 2018

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 607bb4e

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 607bb4e

@rudkx rudkx merged commit d0f0a05 into swiftlang:swift-4.2-branch Jun 27, 2018
@rudkx rudkx deleted the rdar40068274-4.2 branch June 27, 2018 01: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.

2 participants