Skip to content

Commit b89880a

Browse files
committed
Ran update_lints
1 parent 9a5baed commit b89880a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,6 @@ Released 2018-09-13
15551555
[`single_match_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
15561556
[`skip_while_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#skip_while_next
15571557
[`slow_vector_initialization`]: https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
1558-
[`sort_by_key_reverse`]: https://rust-lang.github.io/rust-clippy/master/index.html#sort_by_key_reverse
15591558
[`str_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#str_to_string
15601559
[`string_add`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add
15611560
[`string_add_assign`]: https://rust-lang.github.io/rust-clippy/master/index.html#string_add_assign
@@ -1602,6 +1601,7 @@ Released 2018-09-13
16021601
[`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
16031602
[`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
16041603
[`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
1604+
[`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
16051605
[`unnecessary_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap
16061606
[`unneeded_field_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
16071607
[`unneeded_wildcard_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_wildcard_pattern

clippy_lints/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
780780
&shadow::SHADOW_UNRELATED,
781781
&single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS,
782782
&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION,
783-
&unnecessary_sort_by::UNNECESSARY_SORT_BY,
784783
&strings::STRING_ADD,
785784
&strings::STRING_ADD_ASSIGN,
786785
&strings::STRING_LIT_AS_BYTES,
@@ -835,6 +834,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
835834
&unicode::ZERO_WIDTH_SPACE,
836835
&unnamed_address::FN_ADDRESS_COMPARISONS,
837836
&unnamed_address::VTABLE_ADDRESS_COMPARISONS,
837+
&unnecessary_sort_by::UNNECESSARY_SORT_BY,
838838
&unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME,
839839
&unused_io_amount::UNUSED_IO_AMOUNT,
840840
&unused_self::UNUSED_SELF,
@@ -1394,7 +1394,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13941394
LintId::of(&serde_api::SERDE_API_MISUSE),
13951395
LintId::of(&single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
13961396
LintId::of(&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
1397-
LintId::of(&unnecessary_sort_by::UNNECESSARY_SORT_BY),
13981397
LintId::of(&strings::STRING_LIT_AS_BYTES),
13991398
LintId::of(&suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL),
14001399
LintId::of(&suspicious_trait_impl::SUSPICIOUS_OP_ASSIGN_IMPL),
@@ -1431,6 +1430,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14311430
LintId::of(&unicode::ZERO_WIDTH_SPACE),
14321431
LintId::of(&unnamed_address::FN_ADDRESS_COMPARISONS),
14331432
LintId::of(&unnamed_address::VTABLE_ADDRESS_COMPARISONS),
1433+
LintId::of(&unnecessary_sort_by::UNNECESSARY_SORT_BY),
14341434
LintId::of(&unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
14351435
LintId::of(&unused_io_amount::UNUSED_IO_AMOUNT),
14361436
LintId::of(&unwrap::PANICKING_UNWRAP),
@@ -1596,7 +1596,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15961596
LintId::of(&ranges::RANGE_ZIP_WITH_LEN),
15971597
LintId::of(&reference::DEREF_ADDROF),
15981598
LintId::of(&reference::REF_IN_DEREF),
1599-
LintId::of(&unnecessary_sort_by::UNNECESSARY_SORT_BY),
16001599
LintId::of(&swap::MANUAL_SWAP),
16011600
LintId::of(&temporary_assignment::TEMPORARY_ASSIGNMENT),
16021601
LintId::of(&transmute::CROSSPOINTER_TRANSMUTE),
@@ -1613,6 +1612,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16131612
LintId::of(&types::UNIT_ARG),
16141613
LintId::of(&types::UNNECESSARY_CAST),
16151614
LintId::of(&types::VEC_BOX),
1615+
LintId::of(&unnecessary_sort_by::UNNECESSARY_SORT_BY),
16161616
LintId::of(&unwrap::UNNECESSARY_UNWRAP),
16171617
LintId::of(&useless_conversion::USELESS_CONVERSION),
16181618
LintId::of(&zero_div_zero::ZERO_DIVIDED_BY_ZERO),

src/lintlist/mod.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1984,13 +1984,6 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
19841984
deprecation: None,
19851985
module: "slow_vector_initialization",
19861986
},
1987-
Lint {
1988-
name: "sort_by_key_reverse",
1989-
group: "complexity",
1990-
desc: "Use of `Vec::sort_by` when `Vec::sort_by_key` would be clearer",
1991-
deprecation: None,
1992-
module: "sort_by_key_reverse",
1993-
},
19941987
Lint {
19951988
name: "string_add",
19961989
group: "restriction",
@@ -2299,6 +2292,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
22992292
deprecation: None,
23002293
module: "no_effect",
23012294
},
2295+
Lint {
2296+
name: "unnecessary_sort_by",
2297+
group: "complexity",
2298+
desc: "Use of `Vec::sort_by` when `Vec::sort_by_key` or `Vec::sort` would be clearer",
2299+
deprecation: None,
2300+
module: "unnecessary_sort_by",
2301+
},
23022302
Lint {
23032303
name: "unnecessary_unwrap",
23042304
group: "complexity",

0 commit comments

Comments
 (0)