Skip to content

Commit bb493a3

Browse files
committed
fix(freebsd): Run cargo fix with more FreeBSD versions
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
1 parent 3921964 commit bb493a3

File tree

3 files changed

+112
-112
lines changed

3 files changed

+112
-112
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd11/b32.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@ use crate::{c_long, off_t};
33
#[repr(C)]
44
#[cfg_attr(feature = "extra_traits", derive(Debug, Eq, Hash, PartialEq))]
55
pub struct stat {
6-
pub st_dev: ::dev_t,
7-
pub st_ino: ::ino_t,
8-
pub st_mode: ::mode_t,
9-
pub st_nlink: ::nlink_t,
10-
pub st_uid: ::uid_t,
11-
pub st_gid: ::gid_t,
12-
pub st_rdev: ::dev_t,
13-
pub st_atime: ::time_t,
6+
pub st_dev: crate::dev_t,
7+
pub st_ino: crate::ino_t,
8+
pub st_mode: crate::mode_t,
9+
pub st_nlink: crate::nlink_t,
10+
pub st_uid: crate::uid_t,
11+
pub st_gid: crate::gid_t,
12+
pub st_rdev: crate::dev_t,
13+
pub st_atime: crate::time_t,
1414
pub st_atime_nsec: c_long,
15-
pub st_mtime: ::time_t,
15+
pub st_mtime: crate::time_t,
1616
pub st_mtime_nsec: c_long,
17-
pub st_ctime: ::time_t,
17+
pub st_ctime: crate::time_t,
1818
pub st_ctime_nsec: c_long,
1919
pub st_size: off_t,
20-
pub st_blocks: ::blkcnt_t,
21-
pub st_blksize: ::blksize_t,
22-
pub st_flags: ::fflags_t,
20+
pub st_blocks: crate::blkcnt_t,
21+
pub st_blksize: crate::blksize_t,
22+
pub st_flags: crate::fflags_t,
2323
pub st_gen: u32,
2424
pub st_lspare: i32,
25-
pub st_birthtime: ::time_t,
25+
pub st_birthtime: crate::time_t,
2626
pub st_birthtime_nsec: c_long,
2727
__unused: [u8; 8],
2828
}
2929

30-
impl Copy for ::stat {}
31-
impl Clone for ::stat {
32-
fn clone(&self) -> ::stat {
30+
impl Copy for crate::stat {}
31+
impl Clone for crate::stat {
32+
fn clone(&self) -> crate::stat {
3333
*self
3434
}
3535
}

src/unix/bsd/freebsdlike/freebsd/freebsd11/b64.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@ use crate::{c_long, off_t};
33
#[repr(C)]
44
#[cfg_attr(feature = "extra_traits", derive(Debug, Eq, Hash, PartialEq))]
55
pub struct stat {
6-
pub st_dev: ::dev_t,
7-
pub st_ino: ::ino_t,
8-
pub st_mode: ::mode_t,
9-
pub st_nlink: ::nlink_t,
10-
pub st_uid: ::uid_t,
11-
pub st_gid: ::gid_t,
12-
pub st_rdev: ::dev_t,
13-
pub st_atime: ::time_t,
6+
pub st_dev: crate::dev_t,
7+
pub st_ino: crate::ino_t,
8+
pub st_mode: crate::mode_t,
9+
pub st_nlink: crate::nlink_t,
10+
pub st_uid: crate::uid_t,
11+
pub st_gid: crate::gid_t,
12+
pub st_rdev: crate::dev_t,
13+
pub st_atime: crate::time_t,
1414
pub st_atime_nsec: c_long,
15-
pub st_mtime: ::time_t,
15+
pub st_mtime: crate::time_t,
1616
pub st_mtime_nsec: c_long,
17-
pub st_ctime: ::time_t,
17+
pub st_ctime: crate::time_t,
1818
pub st_ctime_nsec: c_long,
1919
pub st_size: off_t,
20-
pub st_blocks: ::blkcnt_t,
21-
pub st_blksize: ::blksize_t,
22-
pub st_flags: ::fflags_t,
20+
pub st_blocks: crate::blkcnt_t,
21+
pub st_blksize: crate::blksize_t,
22+
pub st_flags: crate::fflags_t,
2323
pub st_gen: u32,
2424
pub st_lspare: i32,
25-
pub st_birthtime: ::time_t,
25+
pub st_birthtime: crate::time_t,
2626
pub st_birthtime_nsec: c_long,
2727
}
2828

29-
impl Copy for ::stat {}
30-
impl Clone for ::stat {
31-
fn clone(&self) -> ::stat {
29+
impl Copy for crate::stat {}
30+
impl Clone for crate::stat {
31+
fn clone(&self) -> crate::stat {
3232
*self
3333
}
3434
}

0 commit comments

Comments
 (0)