Conditionally const version of strlen #2644
Closed
Cirrus CI / FreeBSD 14 amd64 & i686
failed
Jun 17, 2025 in 1m 22s
Task Summary
Instruction build failed in 01:04
Details
✅ 00:02 clone
✅ 00:13 setup
❌ 01:04 build
Compiling once_cell v1.21.3
Compiling tempfile v3.20.0
error[E0433]: failed to resolve: could not find `offset_of` in `mem`
--> src/dir.rs:378:50
|
378 | const DIRENT_HEADER_START: usize = std::mem::offset_of!(libc::dirent64, d_name) + 1; //we're going backwards(to the start of d_name) ...
| ^^^^^^^^^ could not find `offset_of` in `mem`
error[E0412]: cannot find type `dirent64` in crate `libc`
--> src/dir.rs:377:67
|
377 | pub const unsafe fn dirent_const_time_strlen(dirent: *const libc::dirent64) -> usize {
| ^^^^^^^^ help: a struct with a similar name exists: `dirent`
|
::: /.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.172/src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs:215:1
|
215 | / s_no_extra_traits! {
216 | | pub struct dirent {
217 | | pub d_fileno: crate::ino_t,
218 | | pub d_reclen: u16,
... |
261 | | }
262 | | }
| |_- similarly named struct `dirent` defined here
Some errors have detailed explanations: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
The following warnings were emitted during compilation:
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
warning: cargo:rustc-check-cfg requires -Zcheck-cfg=output flag
error: could not compile `nix` due to 2 previous errors
Exit status: 101
Loading