Skip to content

Commit

Permalink
fix(freebsd): Run cargo fix with more FreeBSD versions
Browse files Browse the repository at this point in the history
For versions 10, 11, 12, 13, 14, 15, and architectures aarch64, i686,
powerpc64, and x86_64, I ran the following:

    RUST_LIBC_UNSTABLE_FREEBSD_VERSION=15 cargo fix \
        -Zbuild-std=core \
        --features extra_traits \
        --allow-dirty \
        --edition \
        --broken-code \
        --lib \
        --target aarch64-unknown-freebsd
  • Loading branch information
tgross35 committed Nov 27, 2024
1 parent a905c91 commit 5c96709
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 112 deletions.
34 changes: 17 additions & 17 deletions src/unix/bsd/freebsdlike/freebsd/freebsd11/b32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@ use crate::{c_long, off_t};
#[repr(C)]
#[cfg_attr(feature = "extra_traits", derive(Debug, Eq, Hash, PartialEq))]
pub struct stat {
pub st_dev: ::dev_t,
pub st_ino: ::ino_t,
pub st_mode: ::mode_t,
pub st_nlink: ::nlink_t,
pub st_uid: ::uid_t,
pub st_gid: ::gid_t,
pub st_rdev: ::dev_t,
pub st_atime: ::time_t,
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,
pub st_rdev: crate::dev_t,
pub st_atime: crate::time_t,
pub st_atime_nsec: c_long,
pub st_mtime: ::time_t,
pub st_mtime: crate::time_t,
pub st_mtime_nsec: c_long,
pub st_ctime: ::time_t,
pub st_ctime: crate::time_t,
pub st_ctime_nsec: c_long,
pub st_size: off_t,
pub st_blocks: ::blkcnt_t,
pub st_blksize: ::blksize_t,
pub st_flags: ::fflags_t,
pub st_blocks: crate::blkcnt_t,
pub st_blksize: crate::blksize_t,
pub st_flags: crate::fflags_t,
pub st_gen: u32,
pub st_lspare: i32,
pub st_birthtime: ::time_t,
pub st_birthtime: crate::time_t,
pub st_birthtime_nsec: c_long,
__unused: [u8; 8],
}

impl Copy for ::stat {}
impl Clone for ::stat {
fn clone(&self) -> ::stat {
impl Copy for crate::stat {}
impl Clone for crate::stat {
fn clone(&self) -> crate::stat {
*self
}
}
34 changes: 17 additions & 17 deletions src/unix/bsd/freebsdlike/freebsd/freebsd11/b64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ use crate::{c_long, off_t};
#[repr(C)]
#[cfg_attr(feature = "extra_traits", derive(Debug, Eq, Hash, PartialEq))]
pub struct stat {
pub st_dev: ::dev_t,
pub st_ino: ::ino_t,
pub st_mode: ::mode_t,
pub st_nlink: ::nlink_t,
pub st_uid: ::uid_t,
pub st_gid: ::gid_t,
pub st_rdev: ::dev_t,
pub st_atime: ::time_t,
pub st_dev: crate::dev_t,
pub st_ino: crate::ino_t,
pub st_mode: crate::mode_t,
pub st_nlink: crate::nlink_t,
pub st_uid: crate::uid_t,
pub st_gid: crate::gid_t,
pub st_rdev: crate::dev_t,
pub st_atime: crate::time_t,
pub st_atime_nsec: c_long,
pub st_mtime: ::time_t,
pub st_mtime: crate::time_t,
pub st_mtime_nsec: c_long,
pub st_ctime: ::time_t,
pub st_ctime: crate::time_t,
pub st_ctime_nsec: c_long,
pub st_size: off_t,
pub st_blocks: ::blkcnt_t,
pub st_blksize: ::blksize_t,
pub st_flags: ::fflags_t,
pub st_blocks: crate::blkcnt_t,
pub st_blksize: crate::blksize_t,
pub st_flags: crate::fflags_t,
pub st_gen: u32,
pub st_lspare: i32,
pub st_birthtime: ::time_t,
pub st_birthtime: crate::time_t,
pub st_birthtime_nsec: c_long,
}

impl Copy for ::stat {}
impl Clone for ::stat {
fn clone(&self) -> ::stat {
impl Copy for crate::stat {}
impl Clone for crate::stat {
fn clone(&self) -> crate::stat {
*self
}
}
Loading

0 comments on commit 5c96709

Please sign in to comment.