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 CI failures #146

Merged
merged 3 commits into from
Sep 15, 2024
Merged

Fix CI failures #146

merged 3 commits into from
Sep 15, 2024

Commits on Sep 15, 2024

  1. Fix unexpected_cfgs warning

    ```
      error: unexpected `cfg` condition name: `slab_no_const_vec_new`
         --> src/lib.rs:252:15
          |
      252 |     #[cfg(not(slab_no_const_vec_new))]
          |               ^^^^^^^^^^^^^^^^^^^^^
          |
          = 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(slab_no_const_vec_new)'] }
          = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(slab_no_const_vec_new)");` 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: `-D unexpected-cfgs` implied by `-D warnings`
          = help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
    
      error: unexpected `cfg` condition name: `slab_no_const_vec_new`
         --> src/lib.rs:266:11
          |
      266 |     #[cfg(slab_no_const_vec_new)]
          |           ^^^^^^^^^^^^^^^^^^^^^
          |
          = 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(slab_no_const_vec_new)'] }
          = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(slab_no_const_vec_new)");` 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
    
      error: unexpected `cfg` condition name: `slab_no_track_caller`
         --> src/lib.rs:931:20
          |
      931 |     #[cfg_attr(not(slab_no_track_caller), track_caller)]
          |                    ^^^^^^^^^^^^^^^^^^^^
          |
          = 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(slab_no_track_caller)'] }
          = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(slab_no_track_caller)");` 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
    
      error: unexpected `cfg` condition name: `slab_no_track_caller`
          --> src/lib.rs:1100:20
           |
      1100 |     #[cfg_attr(not(slab_no_track_caller), track_caller)]
           |                    ^^^^^^^^^^^^^^^^^^^^
           |
           = 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(slab_no_track_caller)'] }
           = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(slab_no_track_caller)");` 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
    
      error: unexpected `cfg` condition name: `slab_no_track_caller`
          --> src/lib.rs:1208:20
           |
      1208 |     #[cfg_attr(not(slab_no_track_caller), track_caller)]
           |                    ^^^^^^^^^^^^^^^^^^^^
           |
           = 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(slab_no_track_caller)'] }
           = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(slab_no_track_caller)");` 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
    
      error: unexpected `cfg` condition name: `slab_no_track_caller`
          --> src/lib.rs:1218:20
           |
      1218 |     #[cfg_attr(not(slab_no_track_caller), track_caller)]
           |                    ^^^^^^^^^^^^^^^^^^^^
           |
           = 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(slab_no_track_caller)'] }
           = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(slab_no_track_caller)");` 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
    ```
    taiki-e committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    a5381f1 View commit details
    Browse the repository at this point in the history
  2. Ignore buggy clippy::incompatible_msrv lint

    ```
    error: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.37.0`
       --> src/lib.rs:885:32
        |
    885 |         let ptr = self.entries.as_mut_ptr();
        |                                ^^^^^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
        = note: `-D clippy::incompatible-msrv` implied by `-D warnings`
        = help: to override `-D warnings` add `#[allow(clippy::incompatible_msrv)]`
    
    error: current MSRV (Minimum Supported Rust Version) is `1.31.0` but this item is stable since `1.37.0`
       --> src/lib.rs:934:37
        |
    934 |         let base_ptr = self.entries.as_ptr() as usize;
        |                                     ^^^^^^^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
    ```
    taiki-e committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    fb977ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    880172b View commit details
    Browse the repository at this point in the history