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

Update no_atomic.rs and fix CI failures #129

Merged
merged 4 commits into from
Jul 14, 2024
Merged

Commits on Jun 16, 2024

  1. Update no_atomic.rs

    taiki-e committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    0518498 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. Ignore dead_code warning in tests

    ```
    error: struct `S` is never constructed
      --> tests/tests/derive.rs:49:12
       |
    49 |     struct S {
       |            ^
       |
       = note: `-D dead-code` implied by `-D warnings`
       = help: to override `-D warnings` add `#[allow(dead_code)]`
    
    error: enum `E` is never used
      --> tests/tests/derive.rs:54:10
       |
    54 |     enum E {
       |          ^
    
    error: struct `Test` is never constructed
      --> tests/tests/derive.rs:59:12
       |
    59 |     struct Test<'a> {
       |            ^^^^
    ```
    taiki-e committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    71fe85f View commit details
    Browse the repository at this point in the history
  2. Resolve unexpected_cfgs warning

    ```
    error: unexpected `cfg` condition name: `valuable_no_atomic_cas`
       --> valuable/src/enumerable.rs:640:15
        |
    640 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic_cas`
       --> valuable/src/listable.rs:128:15
        |
    128 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic_cas`
       --> valuable/src/listable.rs:168:15
        |
    168 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic_cas`
       --> valuable/src/mappable.rs:126:15
        |
    126 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic_cas`
       --> valuable/src/structable.rs:493:15
        |
    493 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic_cas`
       --> valuable/src/tuplable.rs:136:15
        |
    136 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic`
       --> valuable/src/valuable.rs:190:11
        |
    190 | #[cfg(not(valuable_no_atomic))]
        |           ^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic)");` 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: `valuable_no_atomic`
       --> valuable/src/valuable.rs:216:11
        |
    216 | #[cfg(not(valuable_no_atomic))]
        |           ^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic)");` 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: `valuable_no_atomic_cas`
       --> valuable/src/valuable.rs:104:15
        |
    104 |     #[cfg(not(valuable_no_atomic_cas))]
        |               ^^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_cas)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_cas)");` 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: `valuable_no_atomic_64`
       --> valuable/src/valuable.rs:222:15
        |
    222 |     #[cfg(not(valuable_no_atomic_64))]
        |               ^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_64)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_64)");` 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: `valuable_no_atomic_64`
       --> valuable/src/valuable.rs:228:15
        |
    228 |     #[cfg(not(valuable_no_atomic_64))]
        |               ^^^^^^^^^^^^^^^^^^^^^
        |
        = 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(valuable_no_atomic_64)'] }
        = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(valuable_no_atomic_64)");` 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 Jul 14, 2024
    Configuration menu
    Copy the full SHA
    be05897 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eb748eb View commit details
    Browse the repository at this point in the history