about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorbit-aloo <sshourya17@gmail.com>2025-07-12 19:23:58 +0530
committerbit-aloo <sshourya17@gmail.com>2025-07-12 19:23:58 +0530
commita9a238ba5b298857dc2999d8ed5b10e70eafe196 (patch)
treefbe9049c5aecba08a9bc10e69eae2d69ede4566a /src/bootstrap
parent57ee3f206ce78a5f361efbca54e58dcc799d13f0 (diff)
downloadrust-a9a238ba5b298857dc2999d8ed5b10e70eafe196.tar.gz
rust-a9a238ba5b298857dc2999d8ed5b10e70eafe196.zip
explicitly drop span_guard in wait_for_output
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/utils/exec.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/utils/exec.rs b/src/bootstrap/src/utils/exec.rs
index 1568c6f1524..9f7f3224f2b 100644
--- a/src/bootstrap/src/utils/exec.rs
+++ b/src/bootstrap/src/utils/exec.rs
@@ -861,13 +861,17 @@ impl<'a> DeferredCommand<'a> {
                 executed_at,
                 fingerprint,
                 start_time,
-                ..
+                #[cfg(feature = "tracing")]
+                _span_guard,
             } => {
                 let exec_ctx = exec_ctx.as_ref();
 
                 let output =
                     Self::finish_process(process, command, stdout, stderr, executed_at, exec_ctx);
 
+                #[cfg(feature = "tracing")]
+                drop(_span_guard);
+
                 if (!exec_ctx.dry_run() || command.run_in_dry_run)
                     && output.status().is_some()
                     && command.should_cache