Skip to content

[CSFix] Introduce non-fatal "warning" fixes #21987

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
Jan 19, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 18, 2019

The intention here is to be able to detect warnings earlier and
move some of the logic from CSApply and MiscDiagnostics to solver.

Warning fixes still lead to solution being applied to AST.

The intention here is to be able to detect warnings earlier and
move some of the logic from CSApply and MiscDiagnostics to solver.

Warning fixes still lead to solution being applied to AST.
@xedin xedin requested a review from DougGregor January 18, 2019 22:12
@xedin
Copy link
Contributor Author

xedin commented Jan 18, 2019

@DougGregor One more reason to do this is - partial application diagnostics - in Swift version < 5 mode such problems should produce a warning in certain cases instead of an error.

@xedin
Copy link
Contributor Author

xedin commented Jan 18, 2019

@swift-ci please smoke test

@xedin xedin merged commit 837385c into swiftlang:master Jan 19, 2019
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... we count the number of fixes as part of ranking solutions, right? So we should exclude "warning" fixes from that count?

@xedin
Copy link
Contributor Author

xedin commented Jan 21, 2019

@DougGregor Right, I remembered that and including that into my next patch which is going to add first warning :)

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