1- use  std:: io:: Write  as  StdWrite ; 
21use  std:: pin:: Pin ; 
32use  std:: sync:: Mutex ; 
43
@@ -8,6 +7,7 @@ use crate::task::{spawn_blocking, Context, JoinHandle, Poll};
87
98cfg_unstable !  { 
109    use  once_cell:: sync:: Lazy ; 
10+     use  std:: io:: Write  as  _; 
1111} 
1212
1313/// Constructs a new handle to the standard error of the current process. 
@@ -59,13 +59,19 @@ pub fn stderr() -> Stderr {
5959pub  struct  Stderr ( Mutex < State > ) ; 
6060
6161/// A locked reference to the Stderr handle. 
62- /// This handle implements the [`Write`] traits, and is constructed via the [`Stderr::lock`] method. 
62+ /// 
63+ /// This handle implements the [`Write`] traits, and is constructed via the [`Stderr::lock`] 
64+ /// method. 
6365/// 
6466/// [`Write`]: trait.Read.html 
6567/// [`Stderr::lock`]: struct.Stderr.html#method.lock 
68+ #[ cfg_attr( feature = "docs" ,  doc( cfg( unstable) ) ) ]  
69+ #[ cfg( any( feature = "unstable" ,  feature = "docs" ) ) ]  
6670#[ derive( Debug ) ]  
6771pub  struct  StderrLock < ' a > ( std:: io:: StderrLock < ' a > ) ; 
6872
73+ #[ cfg_attr( feature = "docs" ,  doc( cfg( unstable) ) ) ]  
74+ #[ cfg( any( feature = "unstable" ,  feature = "docs" ) ) ]  
6975unsafe  impl  Send  for  StderrLock < ' _ >  { } 
7076
7177/// The state of the asynchronous stderr. 
@@ -234,7 +240,9 @@ cfg_windows! {
234240    } 
235241} 
236242
237- impl  Write  for  StderrLock < ' _ >  { 
243+ #[ cfg_attr( feature = "docs" ,  doc( cfg( unstable) ) ) ]  
244+ #[ cfg( any( feature = "unstable" ,  feature = "docs" ) ) ]  
245+ impl  io:: Write  for  StderrLock < ' _ >  { 
238246    fn  poll_write ( 
239247        mut  self :  Pin < & mut  Self > , 
240248        _cx :  & mut  Context < ' _ > , 
0 commit comments