File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ use core::marker::PhantomData;
2
2
use core:: pin:: Pin ;
3
3
use core:: task:: { Context , Poll } ;
4
4
5
- use crate :: stream:: { DoubleEndedStream , ExactSizeStream , FusedStream , Stream } ;
5
+ cfg_unstable ! {
6
+ use crate :: stream:: { DoubleEndedStream , ExactSizeStream , FusedStream } ;
7
+ }
8
+
9
+ use crate :: stream:: Stream ;
6
10
7
11
/// A stream that never returns any items.
8
12
///
@@ -53,14 +57,20 @@ impl<T> Stream for Pending<T> {
53
57
}
54
58
}
55
59
60
+ #[ cfg( feature = "unstable" ) ]
61
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
56
62
impl < T > DoubleEndedStream for Pending < T > {
57
63
fn poll_next_back ( self : Pin < & mut Self > , _: & mut Context < ' _ > ) -> Poll < Option < T > > {
58
64
Poll :: Pending
59
65
}
60
66
}
61
67
68
+ #[ cfg( feature = "unstable" ) ]
69
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
62
70
impl < T > FusedStream for Pending < T > { }
63
71
72
+ #[ cfg( feature = "unstable" ) ]
73
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
64
74
impl < T > ExactSizeStream for Pending < T > {
65
75
fn len ( & self ) -> usize {
66
76
0
You can’t perform that action at this time.
0 commit comments