File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,10 @@ impl DirEntry {
674
674
self . file_name_os_str ( ) . to_os_string ( )
675
675
}
676
676
677
- #[ cfg( any( target_os = "linux" , target_os = "emscripten" , target_os = "android" ) ) ]
677
+ #[ cfg( all(
678
+ any( target_os = "linux" , target_os = "emscripten" , target_os = "android" ) ,
679
+ not( miri)
680
+ ) ) ]
678
681
pub fn metadata ( & self ) -> io:: Result < FileAttr > {
679
682
let fd = cvt ( unsafe { dirfd ( self . dir . dirp . 0 ) } ) ?;
680
683
let name = self . name_cstr ( ) . as_ptr ( ) ;
@@ -695,7 +698,10 @@ impl DirEntry {
695
698
Ok ( FileAttr :: from_stat64 ( stat) )
696
699
}
697
700
698
- #[ cfg( not( any( target_os = "linux" , target_os = "emscripten" , target_os = "android" ) ) ) ]
701
+ #[ cfg( any(
702
+ not( any( target_os = "linux" , target_os = "emscripten" , target_os = "android" ) ) ,
703
+ miri
704
+ ) ) ]
699
705
pub fn metadata ( & self ) -> io:: Result < FileAttr > {
700
706
lstat ( & self . path ( ) )
701
707
}
You can’t perform that action at this time.
0 commit comments