Skip to content

Revert "'@available' without an OS is ignored on extensions" warning #16298

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 1 commit into from
May 2, 2018

Conversation

jrose-apple
Copy link
Contributor

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 #15213, mostly as an opportunity "fix".

SR-7577 / rdar://problem/39867773

@jrose-apple jrose-apple requested a review from DougGregor May 2, 2018 02:05
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

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
@jrose-apple jrose-apple force-pushed the i-wont-warn-you-again branch from f00efa2 to 40c8975 Compare May 2, 2018 16:37
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple jrose-apple requested a review from huonw May 2, 2018 22:41
@jrose-apple jrose-apple merged commit 23260b8 into swiftlang:master May 2, 2018
@jrose-apple jrose-apple deleted the i-wont-warn-you-again branch May 2, 2018 23:53
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 3, 2018
…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 added a commit to jrose-apple/swift that referenced this pull request May 3, 2018
…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)
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