Skip to content

Commit 9e8fd24

Browse files
committed
Stabilize std::sync::mpsc::Receiver::try_iter
1 parent 3188ed5 commit 9e8fd24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/sync/mpsc/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ pub struct Iter<'a, T: 'a> {
316316
///
317317
/// This Iterator will never block the caller in order to wait for data to
318318
/// become available. Instead, it will return `None`.
319-
#[unstable(feature = "receiver_try_iter", issue = "34931")]
319+
#[stable(feature = "receiver_try_iter", since = "1.15.0")]
320320
pub struct TryIter<'a, T: 'a> {
321321
rx: &'a Receiver<T>
322322
}
@@ -1008,7 +1008,7 @@ impl<T> Receiver<T> {
10081008
/// It will return `None` if there are no more pending values or if the
10091009
/// channel has hung up. The iterator will never `panic!` or block the
10101010
/// user by waiting for values.
1011-
#[unstable(feature = "receiver_try_iter", issue = "34931")]
1011+
#[stable(feature = "receiver_try_iter", since = "1.15.0")]
10121012
pub fn try_iter(&self) -> TryIter<T> {
10131013
TryIter { rx: self }
10141014
}
@@ -1108,7 +1108,7 @@ impl<'a, T> Iterator for Iter<'a, T> {
11081108
fn next(&mut self) -> Option<T> { self.rx.recv().ok() }
11091109
}
11101110

1111-
#[unstable(feature = "receiver_try_iter", issue = "34931")]
1111+
#[stable(feature = "receiver_try_iter", since = "1.15.0")]
11121112
impl<'a, T> Iterator for TryIter<'a, T> {
11131113
type Item = T;
11141114

0 commit comments

Comments
 (0)