Skip to content

Commit 9d6eedf

Browse files
pitiK3Uflip1995
authored andcommitted
Run cargo dev update_lints
1 parent 315bab0 commit 9d6eedf

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,7 @@ Released 2018-09-13
17321732
[`for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
17331733
[`forget_copy`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_copy
17341734
[`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
1735+
[`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
17351736
[`future_not_send`]: https://rust-lang.github.io/rust-clippy/master/index.html#future_not_send
17361737
[`get_last_with_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_last_with_len
17371738
[`get_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap

clippy_lints/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
693693
&methods::FILTER_NEXT,
694694
&methods::FIND_MAP,
695695
&methods::FLAT_MAP_IDENTITY,
696+
&methods::FROM_ITER_INSTEAD_OF_COLLECT,
696697
&methods::GET_UNWRAP,
697698
&methods::INEFFICIENT_TO_STRING,
698699
&methods::INTO_ITER_ON_REF,
@@ -1422,6 +1423,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14221423
LintId::of(&methods::EXPECT_FUN_CALL),
14231424
LintId::of(&methods::FILTER_NEXT),
14241425
LintId::of(&methods::FLAT_MAP_IDENTITY),
1426+
LintId::of(&methods::FROM_ITER_INSTEAD_OF_COLLECT),
14251427
LintId::of(&methods::INTO_ITER_ON_REF),
14261428
LintId::of(&methods::ITERATOR_STEP_BY_ZERO),
14271429
LintId::of(&methods::ITER_CLONED_COLLECT),
@@ -1620,6 +1622,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16201622
LintId::of(&mem_replace::MEM_REPLACE_WITH_DEFAULT),
16211623
LintId::of(&methods::CHARS_LAST_CMP),
16221624
LintId::of(&methods::CHARS_NEXT_CMP),
1625+
LintId::of(&methods::FROM_ITER_INSTEAD_OF_COLLECT),
16231626
LintId::of(&methods::INTO_ITER_ON_REF),
16241627
LintId::of(&methods::ITER_CLONED_COLLECT),
16251628
LintId::of(&methods::ITER_NEXT_SLICE),

src/lintlist/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,13 @@ vec![
753753
deprecation: None,
754754
module: "drop_forget_ref",
755755
},
756+
Lint {
757+
name: "from_iter_instead_of_collect",
758+
group: "style",
759+
desc: "use `.collect()` instead of `::from_iter()`",
760+
deprecation: None,
761+
module: "methods",
762+
},
756763
Lint {
757764
name: "future_not_send",
758765
group: "nursery",

0 commit comments

Comments
 (0)