about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorP1start <rewi-github@whanau.org>2014-07-21 15:27:59 +1200
committerP1start <rewi-github@whanau.org>2014-08-30 09:12:04 +1200
commited2aad8b4356d24403f86dd9543957367d4fce88 (patch)
treefdf7d93f93b9282ce138b0852038600c8afd231c /src/rustllvm/RustWrapper.cpp
parentde7abd88244a9fe7033cb71e22af0601d1b811b9 (diff)
downloadrust-ed2aad8b4356d24403f86dd9543957367d4fce88.tar.gz
rust-ed2aad8b4356d24403f86dd9543957367d4fce88.zip
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`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions