Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the build issue of undefined import self::consts on the loongarch64 #2568

Draft
wants to merge 1 commit into
base: r0.26
Choose a base branch
from

Fix the build issue of undefined import self::consts on the loongarch64

26cddd7
Select commit
Loading
Failed to load commit list.
Draft

Fix the build issue of undefined import self::consts on the loongarch64 #2568

Fix the build issue of undefined import self::consts on the loongarch64
26cddd7
Select commit
Loading
Failed to load commit list.
Cirrus CI / Haiku x86_64 failed Dec 20, 2024 in 31s

Task Summary

Instruction build failed in 00:27

Details

ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:01 clone
✅ 00:01 setup
❌ 00:27 build

     = help: to override `-D warnings` add `#[allow(elided_named_lifetimes)]`

error: unexpected `cfg` condition name: `fbsd14`
   --> src/fcntl.rs:738:12
    |
738 | #[cfg_attr(fbsd14, doc = " ```")]
    |            ^^^^^^
    |
    = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fbsd14)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fbsd14)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
note: the lint level is defined here
   --> src/lib.rs:46:24
    |
46  | #![cfg_attr(test, deny(warnings))]
    |                        ^^^^^^^^
    = note: `#[deny(unexpected_cfgs)]` implied by `#[deny(warnings)]`

error: elided lifetime has a name
    --> src/sys/socket/sockopt.rs:1332:34
     |
1331 | impl<'a> Set<'a, OsString> for SetOsString<'a> {
     |      -- lifetime `'a` declared here
1332 |     fn new(val: &'a OsString) -> SetOsString {
     |                                  ^^^^^^^^^^^ this elided lifetime gets resolved as `'a`
     |
     = note: `#[deny(elided_named_lifetimes)]` implied by `#[deny(warnings)]`

error: struct `GetOsString` is never constructed
    --> src/sys/socket/sockopt.rs:1298:8
     |
1298 | struct GetOsString<T: AsMut<[u8]>> {
     |        ^^^^^^^^^^^
     |
note: the lint level is defined here
    --> src/lib.rs:48:9
     |
48   | #![deny(unused)]
     |         ^^^^^^
     = note: `#[deny(dead_code)]` implied by `#[deny(unused)]`

error: struct `SetOsString` is never constructed
    --> src/sys/socket/sockopt.rs:1327:8
     |
1327 | struct SetOsString<'a> {
     |        ^^^^^^^^^^^

error: could not compile `nix` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `nix` (lib test) due to 7 previous errors

Exit status: 101