]> git.lizzy.rs Git - rust.git/commitdiff
Fix missing DirEntryExt::ino
authorRaph Levien <raph@google.com>
Thu, 20 Oct 2016 23:23:43 +0000 (16:23 -0700)
committerRaph Levien <raph@google.com>
Sat, 22 Oct 2016 14:08:07 +0000 (07:08 -0700)
The DirEntryExt::ino() implementation was omitted from the first
iteration of this patch, because a dependency needed to be
configured. The fix is straightforward enough.

src/libstd/sys/unix/ext/fs.rs
src/libstd/sys/unix/fs.rs

index 3ff21a07827a4473dda9fcbac38099c6981355d3..fcfab051588416ce93087ca3456a9fe974c6b5d5 100644 (file)
@@ -312,7 +312,6 @@ pub trait DirEntryExt {
 }
 
 #[stable(feature = "dir_entry_ext", since = "1.1.0")]
-#[cfg(not(target_os = "fuchsia"))]
 impl DirEntryExt for fs::DirEntry {
     fn ino(&self) -> u64 { self.as_inner().ino() }
 }
index ee2887eb01934f9e882acf43f9d763bd616038dd..0b43fd2ac8c4df3a670c2899046ba9c0f1c301e2 100644 (file)
@@ -312,7 +312,8 @@ pub fn file_type(&self) -> io::Result<FileType> {
               target_os = "emscripten",
               target_os = "android",
               target_os = "solaris",
-              target_os = "haiku"))]
+              target_os = "haiku",
+              target_os = "fuchsia"))]
     pub fn ino(&self) -> u64 {
         self.entry.d_ino as u64
     }