Skip to content

Commit b184774

Browse files
committed
prefer instrumentation over entry/exit tracing statements
1 parent 681c7ee commit b184774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_const_eval/src/const_eval/eval_queries.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ use crate::interpret::{
2222
};
2323

2424
// Returns a pointer to where the result lives
25+
#[instrument(level = "debug", skip(ecx, body), ret)]
2526
fn eval_body_using_ecx<'mir, 'tcx>(
2627
ecx: &mut CompileTimeEvalContext<'mir, 'tcx>,
2728
cid: GlobalId<'tcx>,
2829
body: &'mir mir::Body<'tcx>,
2930
) -> InterpResult<'tcx, MPlaceTy<'tcx>> {
30-
debug!("eval_body_using_ecx: {:?}, {:?}", cid, ecx.param_env);
31+
debug!(?ecx.param_env);
3132
let tcx = *ecx.tcx;
3233
assert!(
3334
cid.promoted.is_some()
@@ -75,7 +76,6 @@ fn eval_body_using_ecx<'mir, 'tcx>(
7576
};
7677
intern_const_alloc_recursive(ecx, intern_kind, &ret)?;
7778

78-
debug!("eval_body_using_ecx done: {:?}", ret);
7979
Ok(ret)
8080
}
8181

0 commit comments

Comments
 (0)