From c52b33decb561c2e8387f98ac59b351645368a7a Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 19 Sep 2018 07:04:38 +0200 Subject: [PATCH 1/2] Make travis check lint list --- ci/base-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/base-tests.sh b/ci/base-tests.sh index ba408bbb5fc..2358c8fe2ed 100755 --- a/ci/base-tests.sh +++ b/ci/base-tests.sh @@ -9,6 +9,8 @@ cargo build --features debugging cargo test --features debugging cd clippy_lints && cargo test && cd .. cd rustc_tools_util && cargo test && cd .. +# check that the lint lists are up-to-date +./util/update_lints.py -c mkdir -p ~/rust/cargo/bin cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy cp target/debug/clippy-driver ~/rust/cargo/bin/clippy-driver From c06551aba7c078aadfb9c02bf86b1472d6bc4ac3 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 19 Sep 2018 07:39:50 +0200 Subject: [PATCH 2/2] Update lint list --- CHANGELOG.md | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2a83118ee8..82596edf30e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -764,6 +764,7 @@ All notable changes to this project will be documented in this file. [`needless_bool`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_bool [`needless_borrow`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_borrow [`needless_borrowed_reference`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_borrowed_reference +[`needless_collect`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_collect [`needless_continue`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_continue [`needless_lifetimes`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_lifetimes [`needless_pass_by_value`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#needless_pass_by_value diff --git a/README.md b/README.md index 79cb35587f4..3d994b4ef85 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ We are currently in the process of discussing Clippy 1.0 via the RFC process in A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. -[There are 275 lints included in this crate!](https://rust-lang-nursery.github.io/rust-clippy/master/index.html) +[There are 276 lints included in this crate!](https://rust-lang-nursery.github.io/rust-clippy/master/index.html) We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you: