]> git.lizzy.rs Git - rust.git/commitdiff
Run update_lints.py
authorOwen Sanchez <pengowen816@gmail.com>
Sun, 5 Feb 2017 04:54:21 +0000 (21:54 -0700)
committerOwen Sanchez <pengowen816@gmail.com>
Sun, 5 Feb 2017 04:54:21 +0000 (21:54 -0700)
CHANGELOG.md
README.md
clippy_lints/src/lib.rs

index 39751ef031c231cdff2f6bdc2e72c99d468d8b26..b446de51c02b322cddf48d46a1c3ce9f0aa662bc 100644 (file)
@@ -306,6 +306,7 @@ All notable changes to this project will be documented in this file.
 [`double_parens`]: https://github.com/Manishearth/rust-clippy/wiki#double_parens
 [`drop_ref`]: https://github.com/Manishearth/rust-clippy/wiki#drop_ref
 [`duplicate_underscore_argument`]: https://github.com/Manishearth/rust-clippy/wiki#duplicate_underscore_argument
+[`empty_enum`]: https://github.com/Manishearth/rust-clippy/wiki#empty_enum
 [`empty_loop`]: https://github.com/Manishearth/rust-clippy/wiki#empty_loop
 [`enum_clike_unportable_variant`]: https://github.com/Manishearth/rust-clippy/wiki#enum_clike_unportable_variant
 [`enum_glob_use`]: https://github.com/Manishearth/rust-clippy/wiki#enum_glob_use
index 18166118361ecb66b7d977eb4e90a139b474f2d1..eb1af46c23465cfce968b7c726bf97a471fb439a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -180,7 +180,7 @@ transparently:
 
 ## Lints
 
-There are 184 lints included in this crate:
+There are 185 lints included in this crate:
 
 name                                                                                                                   | default | triggers on
 -----------------------------------------------------------------------------------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------------------------
@@ -220,6 +220,7 @@ name
 [double_parens](https://github.com/Manishearth/rust-clippy/wiki#double_parens)                                         | warn    | Warn on unnecessary double parentheses
 [drop_ref](https://github.com/Manishearth/rust-clippy/wiki#drop_ref)                                                   | warn    | calls to `std::mem::drop` with a reference instead of an owned value
 [duplicate_underscore_argument](https://github.com/Manishearth/rust-clippy/wiki#duplicate_underscore_argument)         | warn    | function arguments having names which only differ by an underscore
+[empty_enum](https://github.com/Manishearth/rust-clippy/wiki#empty_enum)                                               | allow   | enum with no variants
 [empty_loop](https://github.com/Manishearth/rust-clippy/wiki#empty_loop)                                               | warn    | empty `loop {}`, which should block or sleep
 [enum_clike_unportable_variant](https://github.com/Manishearth/rust-clippy/wiki#enum_clike_unportable_variant)         | warn    | C-like enums that are `repr(isize/usize)` and have values that don't fit into an `i32`
 [enum_glob_use](https://github.com/Manishearth/rust-clippy/wiki#enum_glob_use)                                         | allow   | use items that import all variants of an enum
index 650ad08f15455a18f2abcb0a01be68b0536211d9..c4f5458b002f2360668b71c351cc85493c99f93b 100644 (file)
@@ -306,6 +306,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) {
 
     reg.register_lint_group("clippy_pedantic", vec![
         booleans::NONMINIMAL_BOOL,
+        empty_enum::EMPTY_ENUM,
         enum_glob_use::ENUM_GLOB_USE,
         enum_variants::PUB_ENUM_VARIANT_NAMES,
         enum_variants::STUTTER,