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

Conversation

github-actions[bot]
Copy link
Contributor

```
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> {
   |            ^^^^
```
```
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 taiki-e changed the title Update no_atomic.rs Update no_atomic.rs and fix CI failures Jul 14, 2024
@taiki-e taiki-e merged commit 171d50a into master Jul 14, 2024
8 checks passed
@taiki-e taiki-e deleted the update-no-atomic-rs branch July 14, 2024 08:14
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.

1 participant