diff --git a/tokio/src/task/local.rs b/tokio/src/task/local.rs index 59b68b8d2cf..11dfa274ee3 100644 --- a/tokio/src/task/local.rs +++ b/tokio/src/task/local.rs @@ -575,6 +575,7 @@ impl LocalSet { run_until.await } + #[track_caller] pub(in crate::task) fn spawn_named( &self, future: F,