summaryrefslogtreecommitdiff
path: root/tests/evil_rwlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/evil_rwlock.rs')
-rwxr-xr-xtests/evil_rwlock.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/evil_rwlock.rs b/tests/evil_rwlock.rs
index a57a27a..679928b 100755
--- a/tests/evil_rwlock.rs
+++ b/tests/evil_rwlock.rs
@@ -1,10 +1,11 @@
-use std::panic::AssertUnwindSafe;
-use std::sync::Arc;
+#![cfg(feature = "std")]
use happylock::collection::{BoxedLockCollection, RetryingLockCollection};
use happylock::rwlock::RwLock;
use happylock::ThreadKey;
use lock_api::{GuardNoSend, RawRwLock};
+use std::panic::AssertUnwindSafe;
+use std::sync::Arc;
struct EvilRwLock {
inner: parking_lot::RawRwLock,