about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-03 15:59:16 +0000
committerbors <bors@rust-lang.org>2020-11-03 15:59:16 +0000
commita2bf404d34529e2b916bdc514bd71309e86908bd (patch)
tree96237ea30df875addbd6ac431e40d1ed587e63c4 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent3ee9c2e1a07e78e1705b89616e14c0292ecde025 (diff)
parentddf23d649ae02dde7aed22ec6699a736492b7184 (diff)
downloadrust-a2bf404d34529e2b916bdc514bd71309e86908bd.tar.gz
rust-a2bf404d34529e2b916bdc514bd71309e86908bd.zip
Auto merge of #6101 - pitiK3U:from_iter_instead_of_collect, r=flip1995
Add lint: from_iter_instead_of_collect

Fixes #5679

This implements lint for `::from_iter()` from #5679 not the general issue (`std::ops::Add::add`, etc.).
This lint checks if expression is function call with `from_iter` name and if it's implementation of the `std::iter::FromIterator` trait.

changelog: Introduce  from_iter_instead_of_collect lint
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions