diff --git a/src/cargo/core/compiler/build_context/target_info.rs b/src/cargo/core/compiler/build_context/target_info.rs index e9358bdf93d..ed4b04dc228 100644 --- a/src/cargo/core/compiler/build_context/target_info.rs +++ b/src/cargo/core/compiler/build_context/target_info.rs @@ -152,6 +152,7 @@ impl TargetInfo { /// invocation is cached by [`Rustc::cached_output`]. /// /// Search `Tricky` to learn why querying `rustc` several times is needed. + #[tracing::instrument(skip_all)] pub fn new( gctx: &GlobalContext, requested_kinds: &[CompileKind], @@ -878,6 +879,7 @@ pub struct RustcTargetData<'gctx> { } impl<'gctx> RustcTargetData<'gctx> { + #[tracing::instrument(skip_all)] pub fn new( ws: &Workspace<'gctx>, requested_kinds: &[CompileKind], diff --git a/src/cargo/core/package.rs b/src/cargo/core/package.rs index 8cec4a489a8..5e054794a78 100644 --- a/src/cargo/core/package.rs +++ b/src/cargo/core/package.rs @@ -654,6 +654,7 @@ impl<'a, 'gctx> Downloads<'a, 'gctx> { /// Returns `None` if the package is queued up for download and will /// eventually be returned from `wait_for_download`. Returns `Some(pkg)` if /// the package is ready and doesn't need to be downloaded. + #[tracing::instrument(skip_all)] pub fn start(&mut self, id: PackageId) -> CargoResult> { self.start_inner(id) .with_context(|| format!("failed to download `{}`", id)) @@ -793,6 +794,7 @@ impl<'a, 'gctx> Downloads<'a, 'gctx> { /// # Panics /// /// This function will panic if there are no remaining downloads. + #[tracing::instrument(skip_all)] pub fn wait(&mut self) -> CargoResult<&'a Package> { let (dl, data) = loop { assert_eq!(self.pending.len(), self.pending_ids.len());