Skip to content

Commit c6ef9d2

Browse files
committed
Run ./util/dev
1 parent 72f0bae commit c6ef9d2

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ Released 2018-09-13
10331033
[`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
10341034
[`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
10351035
[`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
1036+
[`ifs_same_cond_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond_fn
10361037
[`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
10371038
[`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
10381039
[`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping

clippy_lints/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,6 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
10691069
LintId::of(&collapsible_if::COLLAPSIBLE_IF),
10701070
LintId::of(&comparison_chain::COMPARISON_CHAIN),
10711071
LintId::of(&copies::IFS_SAME_COND),
1072-
LintId::of(&copies::IFS_SAME_COND_FN),
10731072
LintId::of(&copies::IF_SAME_THEN_ELSE),
10741073
LintId::of(&derive::DERIVE_HASH_XOR_EQ),
10751074
LintId::of(&doc::MISSING_SAFETY_DOC),

src/lintlist/mod.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use lint::Lint;
66
pub use lint::LINT_LEVELS;
77

88
// begin lint list, do not remove this comment, it’s used in `update_lints`
9-
pub const ALL_LINTS: [Lint; 333] = [
9+
pub const ALL_LINTS: [Lint; 334] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -714,6 +714,13 @@ pub const ALL_LINTS: [Lint; 333] = [
714714
deprecation: None,
715715
module: "copies",
716716
},
717+
Lint {
718+
name: "ifs_same_cond_fn",
719+
group: "pedantic",
720+
desc: "consecutive `ifs` with the same function call",
721+
deprecation: None,
722+
module: "copies",
723+
},
717724
Lint {
718725
name: "implicit_hasher",
719726
group: "style",

0 commit comments

Comments
 (0)