ed2aad8b43
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`. |
||
---|---|---|
.. | ||
issue-13560.rs | ||
lint-group-plugin.rs | ||
lint-plugin-cmdline.rs | ||
lint-plugin.rs | ||
macro-crate-does-hygiene-work.rs | ||
macro-crate-outlive-expansion-phase.rs | ||
macro-crate.rs | ||
phase-syntax-link-does-resolve.rs | ||
qquote.rs | ||
quote-tokens.rs | ||
quote-unused-sp-no-warning.rs | ||
syntax-extension-fourcc.rs | ||
syntax-extension-hexfloat.rs | ||
syntax-extension-with-dll-deps.rs |