diff options
author | Haibo Huang <hhb@google.com> | 2021-01-14 17:23:22 -0800 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2021-01-15 20:44:08 +0100 |
commit | 290fc4903cd00fc31d93e0ecd49c402e6833c569 (patch) | |
tree | 4a9646d2ab712bae1ead875992160c7248588daf /src/runtime/handle.rs | |
parent | 84cad6596f48e471881980dcba7df9cb5b4b0139 (diff) | |
download | tokio-290fc4903cd00fc31d93e0ecd49c402e6833c569.tar.gz |
Upgrade rust/crates/tokio to 1.0.2platform-tools-31.0.0
Test: make
Change-Id: Ic48ff709bade266749eac8c146856901ce78da7f
Diffstat (limited to 'src/runtime/handle.rs')
-rw-r--r-- | src/runtime/handle.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/handle.rs b/src/runtime/handle.rs index 138d13b..6ff3c39 100644 --- a/src/runtime/handle.rs +++ b/src/runtime/handle.rs @@ -142,7 +142,7 @@ impl Handle { F: Future + Send + 'static, F::Output: Send + 'static, { - #[cfg(feature = "tracing")] + #[cfg(all(tokio_unstable, feature = "tracing"))] let future = crate::util::trace::task(future, "task"); self.spawner.spawn(future) } @@ -172,7 +172,7 @@ impl Handle { F: FnOnce() -> R + Send + 'static, R: Send + 'static, { - #[cfg(feature = "tracing")] + #[cfg(all(tokio_unstable, feature = "tracing"))] let func = { #[cfg(tokio_track_caller)] let location = std::panic::Location::caller(); |