Auto merge of #5044 - Eh2406:PeekAtRemainingCandidates, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 25 Feb 2018 12:00:24 +0000 (12:00 +0000)
committerbors <bors@rust-lang.org>
Sun, 25 Feb 2018 12:00:24 +0000 (12:00 +0000)
commit6cfd4e2a41c7ffd205f50268ce5ff05d1d5ed098
tree388b119392364b0540840d4afe24b94d03406da4
parentfe0c18b9dbd491845e5e3e50390dcfbe0cf00215
parent0be926defd72d6c350470f0f40ee720daa7e1cac
Auto merge of #5044 - Eh2406:PeekAtRemainingCandidates, r=alexcrichton

make RemainingCandidates::next peekable.

`candidates.next` always came with a `candidates.clone().next(prev_active).is_ok` so let's just make that part of `next`. no `clone` needed.