From 0ffe0cc6f69ca2533d9aa266ce819ef468879d5f Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 28 Jul 2023 21:53:15 +0900 Subject: [PATCH] Remove --cfg tokio_no_atomic_u64 test/build with --target target-specs/i686-unknown-linux-gnu.json covers this case. --- .github/workflows/ci.yml | 6 +++--- tokio/src/macros/cfg.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b2e8bee71b..56f28cda08a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -538,7 +538,7 @@ jobs: cargo test --doc -Zbuild-std --target target-specs/i686-unknown-linux-gnu.json -p tokio --all-features env: RUST_TEST_THREADS: 1 - RUSTFLAGS: --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings --cfg tokio_no_atomic_u64 --cfg tokio_no_tuning_tests + RUSTFLAGS: --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings --cfg tokio_no_tuning_tests no-atomic-u64-check: name: Check tokio --feature-powerset --depth 2 on i686-unknown-linux-gnu without AtomicU64 @@ -561,9 +561,9 @@ jobs: # https://github.com/tokio-rs/tokio/pull/5356 # https://github.com/tokio-rs/tokio/issues/5373 - name: Check - run: cargo hack check -p tokio --feature-powerset --depth 2 --keep-going + run: cargo hack check -Zbuild-std --target target-specs/i686-unknown-linux-gnu.json -p tokio --feature-powerset --depth 2 --keep-going env: - RUSTFLAGS: --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings --cfg tokio_no_atomic_u64 + RUSTFLAGS: --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings --cfg features: name: features ${{ matrix.name }} diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index 2862e1f55b4..443cc14b373 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -523,7 +523,7 @@ macro_rules! cfg_not_coop { macro_rules! cfg_has_atomic_u64 { ($($item:item)*) => { $( - #[cfg(all(target_has_atomic = "64", not(tokio_no_atomic_u64)))] + #[cfg(target_has_atomic = "64")] $item )* } @@ -532,7 +532,7 @@ macro_rules! cfg_has_atomic_u64 { macro_rules! cfg_not_has_atomic_u64 { ($($item:item)*) => { $( - #[cfg(any(not(target_has_atomic = "64"), tokio_no_atomic_u64))] + #[cfg(not(target_has_atomic = "64"))] $item )* }