Skip to content

Commit

Permalink
Remove --cfg tokio_no_atomic_u64
Browse files Browse the repository at this point in the history
test/build with --target target-specs/i686-unknown-linux-gnu.json covers this case.
  • Loading branch information
taiki-e committed Jul 28, 2023
1 parent 468eaf2 commit 0ffe0cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions tokio/src/macros/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)*
}
Expand All @@ -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
)*
}
Expand Down

0 comments on commit 0ffe0cc

Please sign in to comment.