@@ -76,8 +76,14 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
7676 ///
7777 /// This does NOT move the statement counter forward, the caller has to do that!
7878 pub fn eval_statement ( & mut self , stmt : & mir:: Statement < ' tcx > ) -> InterpResult < ' tcx > {
79- let _span = enter_trace_span ! ( M , step:: eval_statement, stmt = ?stmt, tracing_separate_thread = Empty )
80- . or_if_tracing_disabled ( || info ! ( ?stmt) ) ;
79+ let _span = enter_trace_span ! (
80+ M ,
81+ step:: eval_statement,
82+ stmt = ?stmt. kind,
83+ span = ?stmt. source_info. span,
84+ tracing_separate_thread = Empty ,
85+ )
86+ . or_if_tracing_disabled ( || info ! ( stmt = ?stmt. kind) ) ;
8187
8288 use rustc_middle:: mir:: StatementKind :: * ;
8389
@@ -162,12 +168,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
162168 rvalue : & mir:: Rvalue < ' tcx > ,
163169 place : mir:: Place < ' tcx > ,
164170 ) -> InterpResult < ' tcx > {
165- let _span = enter_trace_span ! (
166- M ,
167- step:: eval_rvalue_into_place,
168- ?rvalue,
169- tracing_separate_thread = Empty
170- ) ;
171171 let dest = self . eval_place ( place) ?;
172172 // FIXME: ensure some kind of non-aliasing between LHS and RHS?
173173 // Also see https://github.com/rust-lang/rust/issues/68364.
@@ -392,8 +392,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
392392 & self ,
393393 op : & mir:: Operand < ' tcx > ,
394394 ) -> InterpResult < ' tcx , FnArg < ' tcx , M :: Provenance > > {
395- let _span =
396- enter_trace_span ! ( M , step:: eval_fn_call_argument, ?op, tracing_separate_thread = Empty ) ;
397395 interp_ok ( match op {
398396 mir:: Operand :: Copy ( _) | mir:: Operand :: Constant ( _) => {
399397 // Make a regular copy.
@@ -432,13 +430,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
432430 func : & mir:: Operand < ' tcx > ,
433431 args : & [ Spanned < mir:: Operand < ' tcx > > ] ,
434432 ) -> InterpResult < ' tcx , EvaluatedCalleeAndArgs < ' tcx , M > > {
435- let _span = enter_trace_span ! (
436- M ,
437- step:: eval_callee_and_args,
438- ?func,
439- ?args,
440- tracing_separate_thread = Empty
441- ) ;
442433 let func = self . eval_operand ( func, None ) ?;
443434 let args = args
444435 . iter ( )
@@ -474,8 +465,14 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
474465 }
475466
476467 fn eval_terminator ( & mut self , terminator : & mir:: Terminator < ' tcx > ) -> InterpResult < ' tcx > {
477- let _span = enter_trace_span ! ( M , step:: eval_terminator, terminator = ?terminator. kind, tracing_separate_thread = Empty )
478- . or_if_tracing_disabled ( || info ! ( "{:?}" , terminator. kind) ) ;
468+ let _span = enter_trace_span ! (
469+ M ,
470+ step:: eval_terminator,
471+ terminator = ?terminator. kind,
472+ span = ?terminator. source_info. span,
473+ tracing_separate_thread = Empty ,
474+ )
475+ . or_if_tracing_disabled ( || info ! ( terminator = ?terminator. kind) ) ;
479476
480477 use rustc_middle:: mir:: TerminatorKind :: * ;
481478 match terminator. kind {
0 commit comments