@@ -76,8 +76,14 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
76
76
///
77
77
/// This does NOT move the statement counter forward, the caller has to do that!
78
78
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) ) ;
81
87
82
88
use rustc_middle:: mir:: StatementKind :: * ;
83
89
@@ -162,12 +168,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
162
168
rvalue : & mir:: Rvalue < ' tcx > ,
163
169
place : mir:: Place < ' tcx > ,
164
170
) -> InterpResult < ' tcx > {
165
- let _span = enter_trace_span ! (
166
- M ,
167
- step:: eval_rvalue_into_place,
168
- ?rvalue,
169
- tracing_separate_thread = Empty
170
- ) ;
171
171
let dest = self . eval_place ( place) ?;
172
172
// FIXME: ensure some kind of non-aliasing between LHS and RHS?
173
173
// Also see https://github.com/rust-lang/rust/issues/68364.
@@ -392,8 +392,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
392
392
& self ,
393
393
op : & mir:: Operand < ' tcx > ,
394
394
) -> InterpResult < ' tcx , FnArg < ' tcx , M :: Provenance > > {
395
- let _span =
396
- enter_trace_span ! ( M , step:: eval_fn_call_argument, ?op, tracing_separate_thread = Empty ) ;
397
395
interp_ok ( match op {
398
396
mir:: Operand :: Copy ( _) | mir:: Operand :: Constant ( _) => {
399
397
// Make a regular copy.
@@ -432,13 +430,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
432
430
func : & mir:: Operand < ' tcx > ,
433
431
args : & [ Spanned < mir:: Operand < ' tcx > > ] ,
434
432
) -> 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
- ) ;
442
433
let func = self . eval_operand ( func, None ) ?;
443
434
let args = args
444
435
. iter ( )
@@ -474,8 +465,14 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
474
465
}
475
466
476
467
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) ) ;
479
476
480
477
use rustc_middle:: mir:: TerminatorKind :: * ;
481
478
match terminator. kind {
0 commit comments