Skip to content

[4.0] Upgrade some deprecation warnings from Swift 3 to errors in Swift 4 #10920

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 6 commits into from
Jul 13, 2017

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Jul 12, 2017

4.0 merge of #10908 .

Explanation: Some features were deprecated (with warnings) in 3.x versions, which we can switch to hard errors in 4.0.
Scope: This is source breaking, but only for things that have at least 6 months of warnings of deprecation and which we've explicitly decided we don't want, and several of them seem to have migration help.
Radar: rdar://problem/28961650
Risk: Low in terms of compiler crashes etc, since this just adds switches to choose between some pairs of ERROR and WARNING diagnostic IDs. There's also relatively low risk of unacceptable source breakage, as we've been alerting people to our intentions to break for a while.
Testing: CI testing, including a new test that explicitly checks that all of these remain warnings in Swift 3, and all are errors in Swift 4, as well as running the source compatibility suite.

@huonw
Copy link
Contributor Author

huonw commented Jul 12, 2017

@swift-ci Please test

@huonw
Copy link
Contributor Author

huonw commented Jul 12, 2017

@swift-ci Please Test Source Compatibility

@huonw
Copy link
Contributor Author

huonw commented Jul 12, 2017

Hm, I wonder if this should maybe go into swift-4.0-branch-2017-07-11 rather than swift-4.0-branch, since it's relatively safe from a code perspective but we may want more time to assess any downstream breakage?

@slavapestov
Copy link
Contributor

LGTM

@huonw huonw changed the title [4.0] Upgrade some deprecation warnings from Swift 3 to errors in Swift 4. . [4.0] Upgrade some deprecation warnings from Swift 3 to errors in Swift 4 Jul 13, 2017
@huonw huonw merged commit 225d1b7 into swiftlang:swift-4.0-branch Jul 13, 2017
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