Skip to content
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

[Sema] Uninhabited stored property downgrade to warning #20211

Merged
merged 4 commits into from
Nov 12, 2018

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Nov 1, 2018

@jrose-apple
Copy link
Contributor

Hm. Upon reading these, I don't think the "Void" warning is necessarily a good idea, because it doesn't say why it's a bad idea to have, e.g., Empty as a type. Maybe we could replace the "which may be unexpected" with the "which is an enum with no cases" / "which contains an enum that has no cases"?

@jckarter, what do you think?

@jrose-apple
Copy link
Contributor

(Thanks, Alejandro.)

@jckarter
Copy link
Contributor

jckarter commented Nov 1, 2018

That seems like a clearer explanation, sure. Hotever, note that this would typically be paired with the "is never executed" warning about any following statements using the variable, which ought to help clarify why there's an issue.

@Azoy
Copy link
Contributor Author

Azoy commented Nov 3, 2018

@jrose-apple does this look better?

@jckarter
Copy link
Contributor

jckarter commented Nov 3, 2018

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 3, 2018

Build failed
Swift Test Linux Platform
Git Sha - 8d66ed4194b57287aabd3735333c85ebfc8de524

@swift-ci
Copy link
Contributor

swift-ci commented Nov 3, 2018

Build failed
Swift Test OS X Platform
Git Sha - 8d66ed4194b57287aabd3735333c85ebfc8de524

@Azoy
Copy link
Contributor Author

Azoy commented Nov 3, 2018

@jckarter are the bots broken?

@jckarter
Copy link
Contributor

jckarter commented Nov 3, 2018

The failures certainly don't look related to this change. I'll follow up. Meanwhile, we can try a smoke test.

@jckarter
Copy link
Contributor

jckarter commented Nov 3, 2018

@swift-ci Please smoke test

@Azoy
Copy link
Contributor Author

Azoy commented Nov 5, 2018

@jckarter I think the bots are functional once again. Can you kick off again?

@jckarter
Copy link
Contributor

jckarter commented Nov 5, 2018

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 5, 2018

Build failed
Swift Test Linux Platform
Git Sha - 9aea0caabd85c2a9ec119acc54500590eb4f7313

@jckarter
Copy link
Contributor

jckarter commented Nov 5, 2018

@swift-ci Please smoke test

@Azoy
Copy link
Contributor Author

Azoy commented Nov 9, 2018

@jckarter can you kick off once more?

@xwu
Copy link
Collaborator

xwu commented Nov 10, 2018

@swift-ci Please smoke test

1 similar comment
@xwu
Copy link
Collaborator

xwu commented Nov 10, 2018

@swift-ci Please smoke test

@xwu
Copy link
Collaborator

xwu commented Nov 10, 2018

@swift-ci Please smoke test OS X platform

1 similar comment
@xwu
Copy link
Collaborator

xwu commented Nov 10, 2018

@swift-ci Please smoke test OS X platform

@xwu
Copy link
Collaborator

xwu commented Nov 10, 2018

Huh...

@Azoy
Copy link
Contributor Author

Azoy commented Nov 10, 2018

@jckarter @xwu @jrose-apple is this ready for merge?

@jrose-apple
Copy link
Contributor

LGTM. @jckarter, any further comments?

@jckarter
Copy link
Contributor

Looks good. Thanks @Azoy!

@jckarter jckarter merged commit adba153 into swiftlang:master Nov 12, 2018
@Azoy Azoy deleted the sr8811-warning branch December 9, 2018 18:59
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.

5 participants