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

Warning when compiling with Rust 1.80 #2279

Closed
laniakea64 opened this issue Jul 27, 2024 · 1 comment · Fixed by #2281
Closed

Warning when compiling with Rust 1.80 #2279

laniakea64 opened this issue Jul 27, 2024 · 1 comment · Fixed by #2281

Comments

@laniakea64
Copy link
Contributor

With Rust 1.80.0

$ rustc --version
rustc 1.80.0 (051478957 2024-07-21)
$ cargo --version
cargo 1.80.0 (376290515 2024-07-16)

Reinstalling just from latest master gives the following warning:

warning: unexpected `cfg` condition name: `fuzzing`
   --> src/lib.rs:116:7
    |
116 | #[cfg(fuzzing)]
    |       ^^^^^^^
    |
    = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `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(fuzzing)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(fuzzing)");` 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: `#[warn(unexpected_cfgs)]` on by default

warning: `just` (lib) generated 1 warning
@casey
Copy link
Owner

casey commented Jul 27, 2024

Nice, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants