Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lint groups; define built-in lint groups
bad_style
and unused
This adds support for lint groups to the compiler. Lint groups are a way of grouping a number of lints together under one name. For example, this also defines a default lint for naming conventions, named `bad_style`. Writing `#[allow(bad_style)]` is equivalent to writing `#[allow(non_camel_case_types, non_snake_case, non_uppercase_statics)]`. These lint groups can also be defined as a compiler plugin using the new `Registry::register_lint_group` method. This also adds two built-in lint groups, `bad_style` and `unused`. The contents of these groups can be seen by running `rustc -W help`.
- Loading branch information
Showing
16 changed files
with
318 additions
and
50 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
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
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
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
Oops, something went wrong.
ed2aad8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at ftxqxd@ed2aad8
ed2aad8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging P1start/rust/style-lints = ed2aad8 into auto
ed2aad8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1start/rust/style-lints = ed2aad8 merged ok, testing candidate = 5419b2c
ed2aad8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1072
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1072
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1071
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1072
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1067
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1068
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1067
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1073
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1068
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1067
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1070
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1071
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1069
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1070
ed2aad8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 5419b2c