File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ impl File {
353
353
///
354
354
/// This function is only implemented on Redox, but could be
355
355
/// implemented on other operating systems using readlink
356
- #[ cfg( redox) ]
356
+ #[ cfg( target_os = " redox" ) ]
357
357
#[ stable( feature = "rust1" , since = "1.14.0" ) ]
358
358
pub fn path ( & self ) -> io:: Result < PathBuf > {
359
359
self . inner . path ( )
Original file line number Diff line number Diff line change 13
13
#![ stable( feature = "os" , since = "1.0.0" ) ]
14
14
#![ allow( missing_docs, bad_style) ]
15
15
16
- #[ cfg( redox) ]
17
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
18
- pub use sys:: ext as unix;
19
- #[ cfg( unix) ]
16
+ #[ cfg( any( target_os = "redox" , unix) ) ]
20
17
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
21
18
pub use sys:: ext as unix;
22
19
#[ cfg( windows) ]
Original file line number Diff line number Diff line change 32
32
33
33
pub use self :: imp:: * ;
34
34
35
- #[ cfg( redox) ]
35
+ #[ cfg( target_os = " redox" ) ]
36
36
#[ path = "redox/mod.rs" ]
37
37
mod imp;
38
38
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ pub mod thread_local;
43
43
pub mod util;
44
44
pub mod wtf8;
45
45
46
- #[ cfg( redox) ]
46
+ #[ cfg( target_os = " redox" ) ]
47
47
pub use sys:: net;
48
48
49
- #[ cfg( not( redox) ) ]
49
+ #[ cfg( not( target_os = " redox" ) ) ]
50
50
pub mod net;
51
51
52
52
#[ cfg( any( not( cargobuild) , feature = "backtrace" ) ) ]
You can’t perform that action at this time.
0 commit comments