aboutsummaryrefslogtreecommitdiff
path: root/tests/_require_full.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/_require_full.rs')
-rw-r--r--tests/_require_full.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/_require_full.rs b/tests/_require_full.rs
index a339374..4b9698a 100644
--- a/tests/_require_full.rs
+++ b/tests/_require_full.rs
@@ -1,2 +1,8 @@
-#![cfg(not(any(feature = "full", tokio_wasm)))]
+#[cfg(not(any(feature = "full", tokio_wasm)))]
compile_error!("run main Tokio tests with `--features full`");
+
+// CI sets `--cfg tokio_no_parking_lot` when trying to run tests with
+// `parking_lot` disabled. This check prevents "silent failure" if `parking_lot`
+// accidentally gets enabled.
+#[cfg(all(tokio_no_parking_lot, feature = "parking_lot"))]
+compile_error!("parking_lot feature enabled when it should not be");