Skip to content

Ensure a non-zero value is returned by clippy if compilation fails #2863

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
Jun 21, 2018

Conversation

Fraser999
Copy link
Contributor

b45fb35 changed the behaviour of clippy to always return 0 even if compilation failed; specifically the removal of the rustc_driver::run() call.

This PR may not be the best way to fix this issue as I've not worked with rustc_driver, but it at least logs the issue and appears to replicate the previous behaviour.

I also haven't had time to create a regression test for this issue. If someone wants to point me to where such a test should live and ideally a similar test, I can look at adding that too?

@oli-obk oli-obk merged commit dbc9e36 into rust-lang:master Jun 21, 2018
@oli-obk
Copy link
Contributor

oli-obk commented Jun 21, 2018

Thanks! I checked how rustc does it, and this seems to be similar.

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