summary refs log tree commit diff
path: root/src/liballoc/vec.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-03-06 18:21:35 +0800
committerkennytm <kennytm@gmail.com>2018-03-06 20:52:37 +0800
commit8e3493d45924fdb869c37dcb992759f71defed7c (patch)
treed3b1572516c7a81c2a2174d5716bab06388a1d16 /src/liballoc/vec.rs
parentebc6d6e24fa28cfaebd788786f61ab01a9ffda54 (diff)
parentc7c23fe9482c129855a667909ff58969f6efe1f6 (diff)
downloadrust-8e3493d45924fdb869c37dcb992759f71defed7c.tar.gz
rust-8e3493d45924fdb869c37dcb992759f71defed7c.zip
Rollup merge of #47463 - bluss:fused-iterator, r=alexcrichton
Stabilize FusedIterator

FusedIterator is a marker trait that promises that the implementing
iterator continues to return `None` from `.next()` once it has returned
`None` once (and/or `.next_back()`, if implemented).

The effects of FusedIterator are already widely available through
`.fuse()`, but with stable `FusedIterator`, stable Rust users can
implement this trait for their iterators when appropriate.

Closes #35602
Diffstat (limited to 'src/liballoc/vec.rs')
-rw-r--r--src/liballoc/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index feed7c8699a..2f57c53a6d8 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -2273,7 +2273,7 @@ impl<T> ExactSizeIterator for IntoIter<T> {
     }
 }
 
-#[unstable(feature = "fused", issue = "35602")]
+#[stable(feature = "fused", since = "1.26.0")]
 impl<T> FusedIterator for IntoIter<T> {}
 
 #[unstable(feature = "trusted_len", issue = "37572")]
@@ -2379,7 +2379,7 @@ impl<'a, T> ExactSizeIterator for Drain<'a, T> {
     }
 }
 
-#[unstable(feature = "fused", issue = "35602")]
+#[stable(feature = "fused", since = "1.26.0")]
 impl<'a, T> FusedIterator for Drain<'a, T> {}
 
 /// A place for insertion at the back of a `Vec`.