about summary refs log tree commit diff
path: root/library/std/src/os
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2023-10-20 15:12:02 +0100
committerDavid CARLIER <devnexen@gmail.com>2023-10-20 23:55:14 +0100
commitf4791420abb907471e693ed7de5e7763f412c6cc (patch)
tree36f9befd629b975d2cc40484bff83b06ac5c2cd5 /library/std/src/os
parent9a963e80260f8fc26c502e30ffca43661e454ad0 (diff)
downloadrust-f4791420abb907471e693ed7de5e7763f412c6cc.tar.gz
rust-f4791420abb907471e693ed7de5e7763f412c6cc.zip
changes from feedback
Diffstat (limited to 'library/std/src/os')
-rw-r--r--library/std/src/os/freebsd/fs.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/library/std/src/os/freebsd/fs.rs b/library/std/src/os/freebsd/fs.rs
index 8db3a950c40..5689a82e00a 100644
--- a/library/std/src/os/freebsd/fs.rs
+++ b/library/std/src/os/freebsd/fs.rs
@@ -76,12 +76,7 @@ impl MetadataExt for Metadata {
     fn as_raw_stat(&self) -> &raw::stat {
         // The methods below use libc::stat, so they work fine when libc is built with FreeBSD 12 ABI.
         // This method would just return nonsense.
-        #[cfg(freebsd12)]
         panic!("as_raw_stat not supported with FreeBSD 12 ABI");
-        #[cfg(not(freebsd12))]
-        unsafe {
-            &*(self.as_inner().as_inner() as *const libc::stat as *const raw::stat)
-        }
     }
     fn st_dev(&self) -> u64 {
         self.as_inner().as_inner().st_dev as u64
@@ -143,12 +138,7 @@ impl MetadataExt for Metadata {
     fn st_flags(&self) -> u32 {
         self.as_inner().as_inner().st_flags as u32
     }
-    #[cfg(freebsd12)]
     fn st_lspare(&self) -> u32 {
         panic!("st_lspare not supported with FreeBSD 12 ABI");
     }
-    #[cfg(not(freebsd12))]
-    fn st_lspare(&self) -> u32 {
-        self.as_inner().as_inner().st_lspare as u32
-    }
 }