diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 4d8a8cda809a6..35993956fa0b1 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -916,6 +916,7 @@ cfg_if! { } } + #[cfg(not(target_env = "musl"))] impl PartialEq for dirent64 { fn eq(&self, other: &dirent64) -> bool { self.d_ino == other.d_ino @@ -930,8 +931,10 @@ cfg_if! { } } + #[cfg(not(target_env = "musl"))] impl Eq for dirent64 {} + #[cfg(not(target_env = "musl"))] impl ::fmt::Debug for dirent64 { fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { f.debug_struct("dirent64") @@ -944,6 +947,7 @@ cfg_if! { } } + #[cfg(not(target_env = "musl"))] impl ::hash::Hash for dirent64 { fn hash(&self, state: &mut H) { self.d_ino.hash(state);