Skip to content

Can't finish compiling on nightly version of rust #686

@rikonaka

Description

@rikonaka

Hi guys, I just updated rustc to the latest nightly version and I found some bugs when compiling:

rustc 1.80.0-nightly (9c9b56879 2024-05-05)

Previous versions of nigntly have worked fine.

error: unexpected `cfg` condition value: `benchmark`
   --> libpnet/pnet_packet/src/util.rs:240:17
    |
240 | #[cfg(all(test, feature = "benchmark"))]
    |                 ^^^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `feature` are: `default`, `std`
    = help: consider adding `benchmark` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
note: the lint level is defined here
   --> libpnet/pnet_packet/src/lib.rs:11:9
    |
11  | #![deny(warnings)]
    |         ^^^^^^^^
    = note: `#[deny(unexpected_cfgs)]` implied by `#[deny(warnings)]`

error: could not compile `pnet_packet` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions