about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-01-24 11:05:14 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-01-29 08:53:54 +0000
commitb6d0225cafcf7d2421ad943647ed6ef4b8eb7bb4 (patch)
tree15b4c6e19c9b79bdc6e0d14337f96bdadc750019
parent7a2b66319ee219e757b6661549f460d8548dcbed (diff)
prefer instrumentation over entry/exit tracing statements
-rw-r--r--compiler/rustc_const_eval/src/const_eval/eval_queries.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
index 8499de20498..a2d0f1c5583 100644
--- a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
+++ b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -22,12 +22,13 @@ use crate::interpret::{
 };
 
 // Returns a pointer to where the result lives
+#[instrument(level = "trace", skip(ecx, body), ret)]
 fn eval_body_using_ecx<'mir, 'tcx>(
     ecx: &mut CompileTimeEvalContext<'mir, 'tcx>,
     cid: GlobalId<'tcx>,
     body: &'mir mir::Body<'tcx>,
 ) -> InterpResult<'tcx, MPlaceTy<'tcx>> {
-    debug!("eval_body_using_ecx: {:?}, {:?}", cid, ecx.param_env);
+    trace!(?ecx.param_env);
     let tcx = *ecx.tcx;
     assert!(
         cid.promoted.is_some()
@@ -75,7 +76,6 @@ fn eval_body_using_ecx<'mir, 'tcx>(
     };
     intern_const_alloc_recursive(ecx, intern_kind, &ret)?;
 
-    debug!("eval_body_using_ecx done: {:?}", ret);
     Ok(ret)
 }