summaryrefslogtreecommitdiffstats
path: root/tokio/src/executor/loom/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/executor/loom/mod.rs')
-rw-r--r--tokio/src/executor/loom/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tokio/src/executor/loom/mod.rs b/tokio/src/executor/loom/mod.rs
index 97eeb7e3..fa071d05 100644
--- a/tokio/src/executor/loom/mod.rs
+++ b/tokio/src/executor/loom/mod.rs
@@ -20,8 +20,10 @@ pub(crate) mod std {
}
}
+#[cfg(feature = "rt-full")]
+pub(crate) use self::std::rand;
pub(crate) use self::std::sync;
#[cfg(any(feature = "blocking", feature = "rt-full"))]
pub(crate) use self::std::thread;
-#[cfg(feature = "rt-full")]
-pub(crate) use self::std::{alloc, cell, rand, sys};
+#[cfg(feature = "rt-current-thread")]
+pub(crate) use self::std::{alloc, cell, sys};