about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-17 18:27:37 +0100
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-11-17 18:30:00 +0100
commit6c2a456bf198e7853f570435fc78bbd99c51b9d6 (patch)
tree8edea13714e5cdacaeacd3ec597b38d5a3cf3013 /src/test/run-pass/thinlto
parent0ed951993fb5721a303ca5fa743543dd9f3f6b10 (diff)
downloadrust-6c2a456bf198e7853f570435fc78bbd99c51b9d6.tar.gz
rust-6c2a456bf198e7853f570435fc78bbd99c51b9d6.zip
core::iter: Peekable should remember peeking a None
Peekable must remember if a None has been seen in the `.peek()` method.
It ensures that `.peek(); .peek();` or `.peek(); .next();` only advances the
underlying iterator at most once. This does not by itself make the iterator
fused.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions