-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fail build on any warnings when running clippy (#456)
* fail build on any warnings when running clippy Currently warnings from rustc such as an unused import are printed during first execution, but they do not fail the build. If cargo users run clippy again, the same warnings get printed, but with Bazel nothing is shown, as the previous success is cached. This patch changes all warnings into errors, with the rationale being that if we're failing for any clippy warning, it probably makes sense to fail for rustc warnings as well. * clippy aspect needs to include --test on command line for tests Without it, items imported in integration tests generate unused import warnings, which fail the build. * tag bindgen libaries, and don't fail when they generate warnings
- Loading branch information
Showing
3 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters