diff --git a/CHANGELOG.md b/CHANGELOG.md index 21fa487ef8c..bb1c606d736 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.153 +* Update to *rustc 1.21.0-nightly (8c303ed87 2017-08-20)* +* New lint: [`use_self`] + ## 0.0.152 * Update to *rustc 1.21.0-nightly (df511d554 2017-08-14)* @@ -595,6 +599,7 @@ All notable changes to this project will be documented in this file. [`unused_label`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#unused_label [`unused_lifetimes`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#unused_lifetimes [`use_debug`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#use_debug +[`use_self`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#use_self [`used_underscore_binding`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#used_underscore_binding [`useless_attribute`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#useless_attribute [`useless_format`]: https://github.com/rust-lang-nursery/rust-clippy/wiki#useless_format diff --git a/Cargo.toml b/Cargo.toml index 237ab4f8394..6db6ea54fb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.152" +version = "0.0.153" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -31,7 +31,7 @@ path = "src/main.rs" [dependencies] # begin automatic update -clippy_lints = { version = "0.0.152", path = "clippy_lints" } +clippy_lints = { version = "0.0.153", path = "clippy_lints" } # end automatic update cargo_metadata = "0.2" diff --git a/README.md b/README.md index b5cc1f09446..bad6d01b6c8 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ transparently: ## Lints -There are 204 lints included in this crate: +There are 205 lints included in this crate: name | default | triggers on -----------------------------------------------------------------------------------------------------------------------------|---------|---------------------------------------------------------------------------------------------------------------------------------- @@ -372,6 +372,7 @@ name [unused_label](https://github.com/rust-lang-nursery/rust-clippy/wiki#unused_label) | warn | unused labels [unused_lifetimes](https://github.com/rust-lang-nursery/rust-clippy/wiki#unused_lifetimes) | warn | unused lifetimes in function definitions [use_debug](https://github.com/rust-lang-nursery/rust-clippy/wiki#use_debug) | allow | use of `Debug`-based formatting +[use_self](https://github.com/rust-lang-nursery/rust-clippy/wiki#use_self) | allow | Unnecessary structure name repetition whereas `Self` is applicable [used_underscore_binding](https://github.com/rust-lang-nursery/rust-clippy/wiki#used_underscore_binding) | allow | using a binding which is prefixed with an underscore [useless_attribute](https://github.com/rust-lang-nursery/rust-clippy/wiki#useless_attribute) | warn | use of lint attributes on `extern crate` items [useless_format](https://github.com/rust-lang-nursery/rust-clippy/wiki#useless_format) | warn | useless use of `format!` diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index e545b13a678..94094bf49c9 100644 --- a/clippy_lints/Cargo.toml +++ b/clippy_lints/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clippy_lints" # begin automatic update -version = "0.0.152" +version = "0.0.153" # end automatic update authors = [ "Manish Goregaokar ", diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index a8f1b1664b0..dc1b147351a 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -365,6 +365,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { types::INVALID_UPCAST_COMPARISONS, unicode::NON_ASCII_LITERAL, unicode::UNICODE_NOT_NFC, + use_self::USE_SELF, ]); reg.register_lint_group("clippy_internal", vec![