Skip to content

lints: Remove `allow(dead_code)`

1a418ed
Select commit
Loading
Failed to load commit list.
Merged

[0.2] Backports #4476

lints: Remove `allow(dead_code)`
1a418ed
Select commit
Loading
Failed to load commit list.
Cirrus CI / nightly freebsd-15 x86_64 failed Jun 3, 2025 in 1m 8s

Task Summary

Instruction test failed in 00:46

Details

✅ 00:07 clone
✅ 00:12 setup
❌ 00:46 test

      |                                                  ^

  error: invalid fragment specifier `literal`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:227:34
      |
  227 |             $($variant:ident $(= $value:literal)?,)+
      |                                  ^^^^^^^^^^^^^^
      |
      = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt`, `item` and `vis`

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:238:44
      |
  238 |         $variant:ident $(= $value:literal)?,
      |                                            ^

  error: invalid fragment specifier `literal`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:238:28
      |
  238 |         $variant:ident $(= $value:literal)?,
      |                            ^^^^^^^^^^^^^^
      |
      = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt`, `item` and `vis`

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:230:49
      |
  230 |         pub type $ty_name = c_enum!(@ty $($repr)?);
      |                                                 ^

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:231:59
      |
  231 |         c_enum!(@one; $ty_name; 0; $($variant $(= $value)?,)+);
      |                                                           ^

  error: expected `*` or `+`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:245:13
      |
  245 |             r
      |             ^

  error: expected identifier, found `::`
     --> /tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/src-hotfix/macros.rs:255:17
      |
  255 |     (@ty) => { $::c_uint };
      |                 ^^

  rust version: 1.89.0-nightly


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "--target=x86_64-unknown-freebsd" "-Wall" "-Wextra" "-Wall" "-Wextra" "-Werror" "-Wno-unused-parameter" "-Wno-type-limits" "-Wno-address-of-packed-member" "-Wno-unknown-warning-option" "-Wno-deprecated-declarations" "-D_WITH_CPU_SET_T" "-D_WITH_GETLINE" "-D_WANT_FREEBSD11_STAT" "-o" "/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/eec2630ed4c71b4d-main.o" "-c" "/tmp/cirrus-ci-build/target/x86_64-unknown-freebsd/debug/build/libc-test-8ebf8c2f2ddf9b5e/out/main.c"



Exit status: 101