about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/step.rs
diff options
context:
space:
mode:
authorStypox <stypox@pm.me>2025-08-12 12:16:43 +0200
committerStypox <stypox@pm.me>2025-08-18 21:43:27 +0200
commitdc72692591c937e15cb016c57d4dee6a81340bbd (patch)
tree74a4c613ff66eaa3ec1a48ef7c50400760b45b91 /compiler/rustc_const_eval/src/interpret/step.rs
parenta1531335fe2807715fff569904d99602022643a7 (diff)
downloadrust-dc72692591c937e15cb016c57d4dee6a81340bbd.tar.gz
rust-dc72692591c937e15cb016c57d4dee6a81340bbd.zip
Add tracing to various miscellaneous functions
Also use tracing macro syntax instead of format()
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/step.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/step.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/step.rs b/compiler/rustc_const_eval/src/interpret/step.rs
index 9df49c0f4cc..c0c00e6196c 100644
--- a/compiler/rustc_const_eval/src/interpret/step.rs
+++ b/compiler/rustc_const_eval/src/interpret/step.rs
@@ -436,7 +436,10 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
             .map(|arg| self.eval_fn_call_argument(&arg.node))
             .collect::<InterpResult<'tcx, Vec<_>>>()?;
 
-        let fn_sig_binder = func.layout.ty.fn_sig(*self.tcx);
+        let fn_sig_binder = {
+            let _trace = enter_trace_span!(M, "fn_sig", ty = ?func.layout.ty.kind());
+            func.layout.ty.fn_sig(*self.tcx)
+        };
         let fn_sig = self.tcx.normalize_erasing_late_bound_regions(self.typing_env, fn_sig_binder);
         let extra_args = &args[fn_sig.inputs().len()..];
         let extra_args =