about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-25 05:10:53 +0000
committerbors <bors@rust-lang.org>2020-11-25 05:10:53 +0000
commitb387f62d4d0e9aa109660c6ede426ec48cb67d53 (patch)
treea70c80f6e2ec478f15b7daf97a7d9089c50939fe /compiler/rustc_mir/src/transform/coverage/debug.rs
parent3f7ccb4cf59ba79a656f07179aac36e4580a8706 (diff)
parent3b015622be1245d00e2663ba3da38a00ceb583fb (diff)
downloadrust-b387f62d4d0e9aa109660c6ede426ec48cb67d53.tar.gz
rust-b387f62d4d0e9aa109660c6ede426ec48cb67d53.zip
Auto merge of #77491 - lukaslueg:peek_mut, r=m-ou-se
Proposal to add Peekable::peek_mut

A "peekable" iterator has a `peek()`-method which provides an immutable reference to the next item. We currently do not have a method to modify that item, which we could easily add via a `peek_mut()`. See the test for a use-case (alike to my original use case), where a "pristine" iterator is passed on after modifying its state via `peek_mut()`.

If there is interest in this, I can expand on the tests and docs.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions