smol-rs / fastrand

A simple and fast random number generator
Apache License 2.0
386 stars 33 forks source link

warning: unexpected `cfg` condition value: `128` #85

Closed glandium closed 1 month ago

glandium commented 1 month ago

Starting with rustc 1.80:

$ cargo check
warning: unexpected `cfg` condition value: `128`
   --> src/lib.rs:622:11
    |
622 |     #[cfg(target_pointer_width = "128")]
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `target_pointer_width` are: `16`, `32`, and `64`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: `fastrand` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
notgull commented 1 month ago

Hmm, I swear that 128-bit targets were on the table for Rust at some point. Oh well, it's easy enough to remove.