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

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Sep 15, 2024

For the first and second, see commit messages for the actual warnings.

```
  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
```
```
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 taiki-e merged commit fecdd68 into master Sep 15, 2024
7 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch September 15, 2024 07:58
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 this pull request may close these issues.

2 participants