File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1- use  once_cell:: sync:: Lazy ; 
21use  std:: io:: Write  as  StdWrite ; 
32use  std:: pin:: Pin ; 
43use  std:: sync:: Mutex ; 
@@ -7,6 +6,10 @@ use crate::future::Future;
76use  crate :: io:: { self ,  Write } ; 
87use  crate :: task:: { spawn_blocking,  Context ,  JoinHandle ,  Poll } ; 
98
9+ cfg_unstable !  { 
10+     use  once_cell:: sync:: Lazy ; 
11+ } 
12+ 
1013/// Constructs a new handle to the standard error of the current process. 
1114/// 
1215/// This function is an async version of [`std::io::stderr`]. 
@@ -119,6 +122,8 @@ impl Stderr {
119122     /// # 
120123     /// # Ok(()) }) } 
121124     /// ``` 
125+      #[ cfg_attr( feature = "docs" ,  doc( cfg( unstable) ) ) ]  
126+     #[ cfg( any( feature = "unstable" ,  feature = "docs" ) ) ]  
122127    pub  async  fn  lock ( & self )  -> StderrLock < ' static >  { 
123128        static  STDERR :  Lazy < std:: io:: Stderr >  = Lazy :: new ( std:: io:: stderr) ; 
124129
Original file line number Diff line number Diff line change 1- use  once_cell:: sync:: Lazy ; 
21use  std:: pin:: Pin ; 
32use  std:: sync:: Mutex ; 
43
54use  crate :: future:: { self ,  Future } ; 
65use  crate :: io:: { self ,  Read } ; 
76use  crate :: task:: { spawn_blocking,  Context ,  JoinHandle ,  Poll } ; 
87
8+ cfg_unstable !  { 
9+     use  once_cell:: sync:: Lazy ; 
10+ } 
11+ 
912/// Constructs a new handle to the standard input of the current process. 
1013/// 
1114/// This function is an async version of [`std::io::stdin`]. 
@@ -175,6 +178,8 @@ impl Stdin {
175178     /// # 
176179     /// # Ok(()) }) } 
177180     /// ``` 
181+      #[ cfg_attr( feature = "docs" ,  doc( cfg( unstable) ) ) ]  
182+     #[ cfg( any( feature = "unstable" ,  feature = "docs" ) ) ]  
178183    pub  async  fn  lock ( & self )  -> StdinLock < ' static >  { 
179184        static  STDIN :  Lazy < std:: io:: Stdin >  = Lazy :: new ( std:: io:: stdin) ; 
180185
Original file line number Diff line number Diff line change 1- use  once_cell:: sync:: Lazy ; 
21use  std:: io:: Write  as  StdWrite ; 
32use  std:: pin:: Pin ; 
43use  std:: sync:: Mutex ; 
@@ -7,6 +6,10 @@ use crate::future::Future;
76use  crate :: io:: { self ,  Write } ; 
87use  crate :: task:: { spawn_blocking,  Context ,  JoinHandle ,  Poll } ; 
98
9+ cfg_unstable !  { 
10+     use  once_cell:: sync:: Lazy ; 
11+ } 
12+ 
1013/// Constructs a new handle to the standard output of the current process. 
1114/// 
1215/// This function is an async version of [`std::io::stdout`]. 
@@ -119,6 +122,8 @@ impl Stdout {
119122     /// # 
120123     /// # Ok(()) }) } 
121124     /// ``` 
125+      #[ cfg_attr( feature = "docs" ,  doc( cfg( unstable) ) ) ]  
126+     #[ cfg( any( feature = "unstable" ,  feature = "docs" ) ) ]  
122127    pub  async  fn  lock ( & self )  -> StdoutLock < ' static >  { 
123128        static  STDOUT :  Lazy < std:: io:: Stdout >  = Lazy :: new ( std:: io:: stdout) ; 
124129
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments