diff options
| author | bors <bors@rust-lang.org> | 2017-08-04 05:30:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-08-04 05:30:12 +0000 |
| commit | 5431f423aac345e023815d3f10b8cb840711d756 (patch) | |
| tree | f7f71e466b63928ecec4cfcfece071c25eb354bc /src/libstd | |
| parent | eae446c4dcac741558ccd72c83420025e6de4653 (diff) | |
| parent | 9144755a915159f13fee9a2cbeee724c5138a2a7 (diff) | |
Auto merge of #43634 - dhduvall:solaris-test-fixes, r=sanxiyn
Fix a number of failing tests on Solaris and SPARC
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/unix/fs.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs index 59dceba8953..4e6fde5c29d 100644 --- a/src/libstd/sys/unix/fs.rs +++ b/src/libstd/sys/unix/fs.rs @@ -284,12 +284,7 @@ impl DirEntry { lstat(&self.path()) } - #[cfg(target_os = "solaris")] - pub fn file_type(&self) -> io::Result<FileType> { - stat(&self.path()).map(|m| m.file_type()) - } - - #[cfg(target_os = "haiku")] + #[cfg(any(target_os = "solaris", target_os = "haiku"))] pub fn file_type(&self) -> io::Result<FileType> { lstat(&self.path()).map(|m| m.file_type()) } |
