From 16e53c9868d2fe3fd8b2bd7b0f77764da689918a Mon Sep 17 00:00:00 2001 From: sinkuu Date: Fri, 17 Feb 2017 17:48:19 +0900 Subject: [PATCH] Run update_lints.py --- CHANGELOG.md | 1 + README.md | 3 ++- clippy_lints/src/lib.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90f67e8ae..1192195cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -423,6 +423,7 @@ All notable changes to this project will be documented in this file. [`shadow_same`]: https://github.com/Manishearth/rust-clippy/wiki#shadow_same [`shadow_unrelated`]: https://github.com/Manishearth/rust-clippy/wiki#shadow_unrelated [`short_circuit_statement`]: https://github.com/Manishearth/rust-clippy/wiki#short_circuit_statement +[`should_assert_eq`]: https://github.com/Manishearth/rust-clippy/wiki#should_assert_eq [`should_implement_trait`]: https://github.com/Manishearth/rust-clippy/wiki#should_implement_trait [`similar_names`]: https://github.com/Manishearth/rust-clippy/wiki#similar_names [`single_char_pattern`]: https://github.com/Manishearth/rust-clippy/wiki#single_char_pattern diff --git a/README.md b/README.md index 9e4b9fba1..842e65467 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ transparently: ## Lints -There are 190 lints included in this crate: +There are 191 lints included in this crate: name | default | triggers on -----------------------------------------------------------------------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------------------------------- @@ -329,6 +329,7 @@ name [shadow_same](https://github.com/Manishearth/rust-clippy/wiki#shadow_same) | allow | rebinding a name to itself, e.g. `let mut x = &mut x` [shadow_unrelated](https://github.com/Manishearth/rust-clippy/wiki#shadow_unrelated) | allow | rebinding a name without even using the original value [short_circuit_statement](https://github.com/Manishearth/rust-clippy/wiki#short_circuit_statement) | warn | using a short circuit boolean condition as a statement +[should_assert_eq](https://github.com/Manishearth/rust-clippy/wiki#should_assert_eq) | warn | using `assert` macro for asserting equality [should_implement_trait](https://github.com/Manishearth/rust-clippy/wiki#should_implement_trait) | warn | defining a method that should be implementing a std trait [similar_names](https://github.com/Manishearth/rust-clippy/wiki#similar_names) | allow | similarly named items and bindings [single_char_pattern](https://github.com/Manishearth/rust-clippy/wiki#single_char_pattern) | warn | using a single-character str where a char could be used, e.g. `_.split("x")` diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 4f99dff89..814daf7d6 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -481,6 +481,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { returns::LET_AND_RETURN, returns::NEEDLESS_RETURN, serde::SERDE_API_MISUSE, + should_assert_eq::SHOULD_ASSERT_EQ, strings::STRING_LIT_AS_BYTES, swap::ALMOST_SWAPPED, swap::MANUAL_SWAP,