diff --git a/tokio/src/io/driver/mod.rs b/tokio/src/io/driver/mod.rs index 745c73bafd1..5d9e114a604 100644 --- a/tokio/src/io/driver/mod.rs +++ b/tokio/src/io/driver/mod.rs @@ -282,6 +282,7 @@ cfg_not_rt! { /// /// This function panics if there is no current reactor set, or if the `rt` /// feature flag is not enabled. + #[track_caller] pub(super) fn current() -> Self { panic!("{}", crate::util::error::CONTEXT_MISSING_ERROR) }