Skip to content

Commit a9a238b

Browse files
committed
explicitly drop span_guard in wait_for_output
1 parent 57ee3f2 commit a9a238b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/src/utils/exec.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,13 +861,17 @@ impl<'a> DeferredCommand<'a> {
861861
executed_at,
862862
fingerprint,
863863
start_time,
864-
..
864+
#[cfg(feature = "tracing")]
865+
_span_guard,
865866
} => {
866867
let exec_ctx = exec_ctx.as_ref();
867868

868869
let output =
869870
Self::finish_process(process, command, stdout, stderr, executed_at, exec_ctx);
870871

872+
#[cfg(feature = "tracing")]
873+
drop(_span_guard);
874+
871875
if (!exec_ctx.dry_run() || command.run_in_dry_run)
872876
&& output.status().is_some()
873877
&& command.should_cache

0 commit comments

Comments
 (0)