This commit is contained in:
The Miri Cronjob Bot 2025-07-10 05:06:47 +00:00
parent 1f721c651e
commit 5e940f5810

View file

@ -1828,7 +1828,9 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
fn enter_trace_span(span: impl FnOnce() -> tracing::Span) -> impl EnteredTraceSpan {
#[cfg(feature = "tracing")]
{ span().entered() }
{
span().entered()
}
#[cfg(not(feature = "tracing"))]
{
let _ = span; // so we avoid the "unused variable" warning