Skip to content

Commit 9b4faf9

Browse files
committed
Run update_lints
1 parent 7db973d commit 9b4faf9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ Released 2018-09-13
10301030
[`if_not_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
10311031
[`if_same_then_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
10321032
[`ifs_same_cond`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond
1033-
[`ifs_same_cond_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#ifs_same_cond_fn
10341033
[`implicit_hasher`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_hasher
10351034
[`implicit_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#implicit_return
10361035
[`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
@@ -1178,6 +1177,7 @@ Released 2018-09-13
11781177
[`result_map_unwrap_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unwrap_or_else
11791178
[`result_unwrap_used`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unwrap_used
11801179
[`reverse_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#reverse_range_loop
1180+
[`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
11811181
[`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
11821182
[`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
11831183
[`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
88

9-
[There are 334 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 337 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1010

1111
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1212

clippy_lints/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,9 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
472472
&collapsible_if::COLLAPSIBLE_IF,
473473
&comparison_chain::COMPARISON_CHAIN,
474474
&copies::IFS_SAME_COND,
475-
&copies::SAME_FUNCTIONS_IN_IF_CONDITION,
476475
&copies::IF_SAME_THEN_ELSE,
477476
&copies::MATCH_SAME_ARMS,
477+
&copies::SAME_FUNCTIONS_IN_IF_CONDITION,
478478
&copy_iterator::COPY_ITERATOR,
479479
&dbg_macro::DBG_MACRO,
480480
&default_trait_access::DEFAULT_TRAIT_ACCESS,
@@ -997,8 +997,8 @@ pub fn register_plugins(store: &mut lint::LintStore, sess: &Session, conf: &Conf
997997
store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
998998
LintId::of(&attrs::INLINE_ALWAYS),
999999
LintId::of(&checked_conversions::CHECKED_CONVERSIONS),
1000-
LintId::of(&copies::SAME_FUNCTIONS_IN_IF_CONDITION),
10011000
LintId::of(&copies::MATCH_SAME_ARMS),
1001+
LintId::of(&copies::SAME_FUNCTIONS_IN_IF_CONDITION),
10021002
LintId::of(&copy_iterator::COPY_ITERATOR),
10031003
LintId::of(&default_trait_access::DEFAULT_TRAIT_ACCESS),
10041004
LintId::of(&derive::EXPL_IMPL_CLONE_ON_COPY),

src/lintlist/mod.rs

+8-8
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; 334] = [
9+
pub const ALL_LINTS: [Lint; 337] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",
@@ -714,13 +714,6 @@ pub const ALL_LINTS: [Lint; 334] = [
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-
},
724717
Lint {
725718
name: "implicit_hasher",
726719
group: "style",
@@ -1722,6 +1715,13 @@ pub const ALL_LINTS: [Lint; 334] = [
17221715
deprecation: None,
17231716
module: "loops",
17241717
},
1718+
Lint {
1719+
name: "same_functions_in_if_condition",
1720+
group: "pedantic",
1721+
desc: "consecutive `ifs` with the same function call",
1722+
deprecation: None,
1723+
module: "copies",
1724+
},
17251725
Lint {
17261726
name: "search_is_some",
17271727
group: "complexity",

0 commit comments

Comments
 (0)