summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2020-10-13 06:13:23 +0900
committerGitHub <noreply@github.com>2020-10-12 14:13:23 -0700
commitc90681bd8e629b5fde988b9f5be7b915e5cf8ae5 (patch)
treee70838b9437123dc986ebcfeb8fc0c44ca3fe667 /tokio/src/sync
parent24d0a0cfa8916eaef17f40f044d978aa3904d654 (diff)
rt: simplify rt-* features (#2949)
tokio: merge rt-core and rt-util as rt rename rt-threaded to rt-multi-thread tokio-util: rename rt-core to rt Closes #2942
Diffstat (limited to 'tokio/src/sync')
-rw-r--r--tokio/src/sync/mod.rs4
-rw-r--r--tokio/src/sync/notify.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs
index ddb289eb..57ae2778 100644
--- a/tokio/src/sync/mod.rs
+++ b/tokio/src/sync/mod.rs
@@ -464,7 +464,7 @@ cfg_not_sync! {
pub(crate) use mutex::Mutex;
}
- #[cfg(any(feature = "rt-core", feature = "signal", all(unix, feature = "process")))]
+ #[cfg(any(feature = "rt", feature = "signal", all(unix, feature = "process")))]
pub(crate) mod notify;
cfg_atomic_waker_impl! {
@@ -473,7 +473,7 @@ cfg_not_sync! {
}
#[cfg(any(
- feature = "rt-core",
+ feature = "rt",
feature = "process",
feature = "signal"))]
pub(crate) mod oneshot;
diff --git a/tokio/src/sync/notify.rs b/tokio/src/sync/notify.rs
index 17117bfe..922f1095 100644
--- a/tokio/src/sync/notify.rs
+++ b/tokio/src/sync/notify.rs
@@ -1,7 +1,7 @@
// Allow `unreachable_pub` warnings when sync is not enabled
-// due to the usage of `Notify` within the `rt-core` feature set.
+// due to the usage of `Notify` within the `rt` feature set.
// When this module is compiled with `sync` enabled we will warn on
-// this lint. When `rt-core` is enabled we use `pub(crate)` which
+// this lint. When `rt` is enabled we use `pub(crate)` which
// triggers this warning but it is safe to ignore in this case.
#![cfg_attr(not(feature = "sync"), allow(unreachable_pub, dead_code))]