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`. |
||
---|---|---|
.. | ||
gated-phase.rs | ||
lint-group-plugin-deny-cmdline.rs | ||
lint-plugin-deny-attr.rs | ||
lint-plugin-deny-cmdline.rs | ||
lint-plugin-forbid-attrs.rs | ||
lint-plugin-forbid-cmdline.rs | ||
macro-crate-cannot-read-embedded-ident.rs | ||
macro-crate-rlib.rs | ||
macro-crate-unexported-macro.rs | ||
macro-crate-unknown-crate.rs | ||
phase-syntax-doesnt-resolve.rs | ||
syntax-extension-fourcc-bad-len.rs | ||
syntax-extension-fourcc-invalid-endian.rs | ||
syntax-extension-fourcc-non-ascii-str.rs | ||
syntax-extension-fourcc-non-literal.rs | ||
syntax-extension-fourcc-unsupported-literal.rs | ||
syntax-extension-hexfloat-bad-lits.rs | ||
syntax-extension-hexfloat-bad-types.rs | ||
syntax-extension-regex-invalid.rs | ||
syntax-extension-regex-unused-static.rs | ||
syntax-extension-regex-unused.rs |