]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #87206 - matthiaskrgr:clippy_collect, r=davidtwco
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 21 Jul 2021 13:52:45 +0000 (15:52 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jul 2021 13:52:45 +0000 (15:52 +0200)
commit358b2cc0b93d6dd79605983e3978adb4de93b0a1
treee998f34ed2329f574885b47e3bc41c7a122c0457
parent2861265f26ef89828a23f70fe9c6f6f1039d145d
parent8462a378f313f7f279fb8f98a7dad703ef9ef897
Rollup merge of #87206 - matthiaskrgr:clippy_collect, r=davidtwco

avoid temporary vectors/reuse iterators

Avoid collecting an interator just to re-iterate immediately.
Rather reuse the previous iterator. (clippy::needless_collect)
compiler/rustc_infer/src/infer/error_reporting/mod.rs