1+ use  crate :: fmt:: { self ,  Debug } ; 
12use  crate :: future:: Future ; 
23use  crate :: marker; 
34use  crate :: pin:: Pin ; 
@@ -10,8 +11,7 @@ use crate::task::{Context, Poll};
1011/// documentation for more. 
1112/// 
1213/// [`pending`]: fn.pending.html 
13- #[ unstable( feature = "future_readiness_fns" ,  issue = "70921" ) ]  
14- #[ derive( Debug ) ]  
14+ #[ stable( feature = "future_readiness_fns" ,  since = "1.47.0" ) ]  
1515#[ must_use = "futures do nothing unless you `.await` or poll them" ]  
1616pub  struct  Pending < T >  { 
1717    _data :  marker:: PhantomData < T > , 
@@ -23,7 +23,6 @@ pub struct Pending<T> {
2323/// # Examples 
2424/// 
2525/// ```no_run 
26- /// #![feature(future_readiness_fns)] 
2726/// use core::future; 
2827/// 
2928/// # async fn run() { 
@@ -32,12 +31,12 @@ pub struct Pending<T> {
3231/// unreachable!(); 
3332/// # } 
3433/// ``` 
35- #[ unstable ( feature = "future_readiness_fns" ,  issue  = "70921 " ) ]  
34+ #[ stable ( feature = "future_readiness_fns" ,  since  = "1.47.0 " ) ]  
3635pub  fn  pending < T > ( )  -> Pending < T >  { 
3736    Pending  {  _data :  marker:: PhantomData  } 
3837} 
3938
40- #[ unstable ( feature = "future_readiness_fns" ,  issue  = "70921 " ) ]  
39+ #[ stable ( feature = "future_readiness_fns" ,  since  = "1.47.0 " ) ]  
4140impl < T >  Future  for  Pending < T >  { 
4241    type  Output  = T ; 
4342
@@ -46,10 +45,17 @@ impl<T> Future for Pending<T> {
4645    } 
4746} 
4847
49- #[ unstable ( feature = "future_readiness_fns" ,  issue  = "70921 " ) ]  
48+ #[ stable ( feature = "future_readiness_fns" ,  since  = "1.47.0 " ) ]  
5049impl < T >  Unpin  for  Pending < T >  { } 
5150
52- #[ unstable( feature = "future_readiness_fns" ,  issue = "70921" ) ]  
51+ #[ stable( feature = "future_readiness_fns" ,  since = "1.47.0" ) ]  
52+ impl < T >  Debug  for  Pending < T >  { 
53+     fn  fmt ( & self ,  f :  & mut  fmt:: Formatter < ' _ > )  -> fmt:: Result  { 
54+         f. debug_struct ( "Pending" ) . finish ( ) 
55+     } 
56+ } 
57+ 
58+ #[ stable( feature = "future_readiness_fns" ,  since = "1.47.0" ) ]  
5359impl < T >  Clone  for  Pending < T >  { 
5460    fn  clone ( & self )  -> Self  { 
5561        pending ( ) 
0 commit comments