Skip to content

Commit

Permalink
don't build tracing tests if no atomic u64 is available
Browse files Browse the repository at this point in the history
  • Loading branch information
hds committed Dec 3, 2024
1 parent ed7dd61 commit f083bb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tokio/tests/tracing_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! synchronization primitives is correct.
#![allow(unknown_lints, unexpected_cfgs)]
#![warn(rust_2018_idioms)]
#![cfg(all(tokio_unstable, feature = "tracing"))]
#![cfg(all(tokio_unstable, feature = "tracing", target_has_atomic = "64"))]

use tokio::sync;
use tracing_mock::{expect, subscriber};
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/tracing_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! lifecycles is correct.
#![allow(unknown_lints, unexpected_cfgs)]
#![warn(rust_2018_idioms)]
#![cfg(all(tokio_unstable, feature = "tracing"))]
#![cfg(all(tokio_unstable, feature = "tracing", target_has_atomic = "64"))]

use std::{mem, time::Duration};

Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/tracing_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! synchronization primitives is correct.
#![allow(unknown_lints, unexpected_cfgs)]
#![warn(rust_2018_idioms)]
#![cfg(all(tokio_unstable, feature = "tracing"))]
#![cfg(all(tokio_unstable, feature = "tracing", target_has_atomic = "64"))]

use std::time::Duration;

Expand Down

0 comments on commit f083bb3

Please sign in to comment.