From ce229b2025117812caf4b9da062aca4c8b35240e Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 29 May 2018 11:58:58 +0200 Subject: [PATCH] Version bump --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- README.md | 2 +- clippy_lints/Cargo.toml | 2 +- clippy_lints/src/lib.rs | 1 + clippy_lints/src/redundant_field_names.rs | 10 +++++----- clippy_lints/src/write.rs | 2 +- min_version.txt | 6 +++--- 8 files changed, 18 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe0211c9c..85488816b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.206 +* Rustup to *rustc 1.28.0-nightly (5bf68db6e 2018-05-28)* + ## 0.0.205 * Rustup to *rustc 1.28.0-nightly (990d8aa74 2018-05-25)* * Rename `unused_lifetimes` to `extra_unused_lifetimes` because of naming conflict with new rustc lint @@ -778,6 +781,7 @@ All notable changes to this project will be documented in this file. [`redundant_closure_call`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#redundant_closure_call [`redundant_field_names`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#redundant_field_names [`redundant_pattern`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#redundant_pattern +[`ref_in_deref`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#ref_in_deref [`regex_macro`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#regex_macro [`replace_consts`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#replace_consts [`result_map_unit_fn`]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#result_map_unit_fn diff --git a/Cargo.toml b/Cargo.toml index 9d49b8944..db3ce5259 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.205" +version = "0.0.206" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -37,7 +37,7 @@ path = "src/driver.rs" [dependencies] # begin automatic update -clippy_lints = { version = "0.0.205", path = "clippy_lints" } +clippy_lints = { version = "0.0.206", path = "clippy_lints" } # end automatic update regex = "1" semver = "0.9" diff --git a/README.md b/README.md index 506615014..5c90646bf 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. -[There are 259 lints included in this crate!](https://rust-lang-nursery.github.io/rust-clippy/master/index.html) +[There are 260 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: diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index a02cad5b1..52c6e7706 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.205" +version = "0.0.206" # end automatic update authors = [ "Manish Goregaokar ", diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 1e75d42dd..01bfdc28c 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -637,6 +637,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry) { ranges::RANGE_ZIP_WITH_LEN, redundant_field_names::REDUNDANT_FIELD_NAMES, reference::DEREF_ADDROF, + reference::REF_IN_DEREF, regex::INVALID_REGEX, regex::REGEX_MACRO, regex::TRIVIAL_REGEX, diff --git a/clippy_lints/src/redundant_field_names.rs b/clippy_lints/src/redundant_field_names.rs index a0465f211..11ee6024a 100644 --- a/clippy_lints/src/redundant_field_names.rs +++ b/clippy_lints/src/redundant_field_names.rs @@ -4,20 +4,20 @@ use utils::{in_macro, is_range_expression, match_var, span_lint_and_sugg}; /// **What it does:** Checks for fields in struct literals where shorthands /// could be used. -/// +/// /// **Why is this bad?** If the field and variable names are the same, /// the field name is redundant. -/// +/// /// **Known problems:** None. -/// +/// /// **Example:** /// ```rust /// let bar: u8 = 123; -/// +/// /// struct Foo { /// bar: u8, /// } -/// +/// /// let foo = Foo{ bar: bar } /// ``` declare_clippy_lint! { diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs index fdd4f8ced..d54bbc884 100644 --- a/clippy_lints/src/write.rs +++ b/clippy_lints/src/write.rs @@ -365,7 +365,7 @@ where then { if args.len() == 2 { lint_fn(tup_val.span); - } + } // ensure the format str has no options (e.g., width, precision, alignment, etc.) // and is just "{}" diff --git a/min_version.txt b/min_version.txt index 55f113ccd..6b2be5640 100644 --- a/min_version.txt +++ b/min_version.txt @@ -1,7 +1,7 @@ -rustc 1.28.0-nightly (990d8aa74 2018-05-25) +rustc 1.28.0-nightly (5bf68db6e 2018-05-28) binary: rustc -commit-hash: 990d8aa743b1dda3cc0f68fe09524486261812c6 -commit-date: 2018-05-25 +commit-hash: 5bf68db6ecda0dd4788311a41b5c763d35597c96 +commit-date: 2018-05-28 host: x86_64-unknown-linux-gnu release: 1.28.0-nightly LLVM version: 6.0