[0.2] Deprecate FreeBSD's CAP_UNUSED* and CAP_ALL* constants #4183
Cirrus CI / nightly freebsd-14 x86_64
failed
Dec 8, 2024 in 1m 41s
Task Summary
Instruction test failed in 01:20
Details
✅ 00:07 clone
✅ 00:12 setup
❌ 01:20 test
PASSED 0 tests
Running test/linux_if_arp.rs (target/x86_64-unknown-freebsd/debug/deps/linux_if_arp-2a8e2aa7b657eb84)
PASSED 0 tests
Running test/linux_ipv6.rs (target/x86_64-unknown-freebsd/debug/deps/linux_ipv6-d646a25903b8a47d)
PASSED 0 tests
Running test/linux_strerror_r.rs (target/x86_64-unknown-freebsd/debug/deps/linux_strerror_r-0af1a3e9e9b8604a)
PASSED 0 tests
Running test/linux_termios.rs (target/x86_64-unknown-freebsd/debug/deps/linux_termios-cd2bcdee454038ed)
PASSED 0 tests
Running test/main.rs (target/x86_64-unknown-freebsd/debug/deps/main-79946603ae25ea6a)
RUNNING ALL TESTS
PASSED 17435 tests
Running test/makedev.rs (target/x86_64-unknown-freebsd/debug/deps/makedev-1a130d46dbd360b6)
running 3 tests
test t::test_fbsd11_like ... ok
test t::test_fbsd12_like ... ok
test t::test_8bits ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running test/semver.rs (target/x86_64-unknown-freebsd/debug/deps/semver-59b7c71c601c9ddc)
PASSED 1 tests
Running test/sigrt.rs (target/x86_64-unknown-freebsd/debug/deps/sigrt-f7d185ffd0046d59)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
+ cargo test --target x86_64-unknown-freebsd --manifest-path libc-test/Cargo.toml --features extra_traits
Compiling libc v0.2.164 (/tmp/cirrus-ci-build)
Compiling libc-test v0.2.155 (/tmp/cirrus-ci-build/libc-test)
error: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
--> src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs:244:28
|
244 | || self.a_fcn == other.a_fcn
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the address of the same function can vary between different codegen units
= note: furthermore, different functions could have the same address after being merged together
= note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
note: the lint level is defined here
--> src/lib.rs:20:38
|
20 | #![cfg_attr(libc_deny_warnings, deny(warnings))]
| ^^^^^^^^
= note: `#[deny(unpredictable_function_pointer_comparisons)]` implied by `#[deny(warnings)]`
help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint
|
244 | || std::ptr::fn_addr_eq(self.a_fcn, other.a_fcn)
| +++++++++++++++++++++ ~ +
error: could not compile `libc` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Exit status: 101
Loading