diff --git a/console-subscriber/src/lib.rs b/console-subscriber/src/lib.rs index 6b0c1a75e..c07810278 100644 --- a/console-subscriber/src/lib.rs +++ b/console-subscriber/src/lib.rs @@ -264,7 +264,7 @@ impl ConsoleLayer { // depending on the build-time configuration... #![allow(clippy::assertions_on_constants)] assert!( - cfg!(tokio_unstable), + cfg!(any(tokio_unstable, console_without_tokio_unstable)), "task tracing requires Tokio to be built with RUSTFLAGS=\"--cfg tokio_unstable\"!" );