Skip to content

[4.2] Revert "'@available' without an OS is ignored on extensions" warning #16323

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

jrose-apple
Copy link
Contributor

Cherry-pick of #16298 to 4.2, reviewed by @huonw.

SR-7577 / rdar://problem/39867773

…wiftlang#16298)

This is still useful for the feature where deprecated declarations are
allowed to be used within a context that's marked deprecated. There's
probably a better balance to be found here, because marking the
extension deprecated still does not mark all the members deprecated,
but for now it still has an effect, and we shouldn't produce a warning
for legitimately making use of that effect.

The warning was added in f21d9f3, mostly as an opportunity "fix".

https://bugs.swift.org/browse/SR-7577
(cherry picked from commit 23260b8)
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple jrose-apple merged commit 86ed1ce into swiftlang:swift-4.2-branch May 3, 2018
@jrose-apple jrose-apple deleted the 4.2-i-wont-warn-you-again branch May 3, 2018 02:41
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.

1 participant