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

make rust warnings break the build #324

Closed
dmose opened this issue Oct 12, 2020 · 1 comment
Closed

make rust warnings break the build #324

dmose opened this issue Oct 12, 2020 · 1 comment
Assignees

Comments

@dmose
Copy link
Member

dmose commented Oct 12, 2020

In Slack, I proposed that we make warnings break the CI builds so that they don't start creeping into our code and training us to ignore them. @rfk said :

+1 to warnings as errors; I think we have this in some places already in appservices, e.g. clippy lints as errors
it's occasionally a PITA, such as when a new version of rust gets released with new warnings that break CI, but it helps us keep up to speed with best practices

What are other folks thoughts?

┆Issue is synchronized with this Jira Task

@dmose dmose self-assigned this Oct 12, 2020
@dmose
Copy link
Member Author

dmose commented Oct 13, 2020

So, amusingly, the reason this took a bit of debugging is that RUSTFLAGS doesn't matter when the warning is coming from cargo, like the license warning was. As per rust-lang/cargo#8424, cargo doesn't yet have equivalent functionality.

That said, I just tested this on Rust code by adding a dead function to a file, and sure enough, it does turn circleci red for rustc warnings, which still seems worth doing.

@rfk rfk closed this as completed in 076d1ad Oct 13, 2020
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

No branches or pull requests

1 participant