diff options
| author | Stypox <stypox@pm.me> | 2025-05-20 17:01:59 +0200 |
|---|---|---|
| committer | Stypox <stypox@pm.me> | 2025-06-27 11:32:32 +0200 |
| commit | 5e1082899b06c821f8bf06f3458c76a87c89dcd4 (patch) | |
| tree | 7264a765bcbc1acc9d1611c6c819ded4a17dce57 /compiler/rustc_const_eval | |
| parent | df32e15c56f582eb2bdde07711af6271f2ae660b (diff) | |
| download | rust-5e1082899b06c821f8bf06f3458c76a87c89dcd4.tar.gz rust-5e1082899b06c821f8bf06f3458c76a87c89dcd4.zip | |
Add tracing for instantiate_from_frame_and_normalize_erasing_regions
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/eval_context.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs index b69bc0918be..70cd7544368 100644 --- a/compiler/rustc_const_eval/src/interpret/eval_context.rs +++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs @@ -21,7 +21,7 @@ use super::{ MemPlaceMeta, Memory, OpTy, Place, PlaceTy, PointerArithmetic, Projectable, Provenance, err_inval, interp_ok, throw_inval, throw_ub, throw_ub_custom, }; -use crate::{ReportErrorExt, fluent_generated as fluent, util}; +use crate::{ReportErrorExt, enter_trace_span, fluent_generated as fluent, util}; pub struct InterpCx<'tcx, M: Machine<'tcx>> { /// Stores the `Machine` instance. @@ -284,6 +284,12 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { frame: &Frame<'tcx, M::Provenance, M::FrameExtra>, value: T, ) -> Result<T, ErrorHandled> { + let _span = enter_trace_span!( + M, + "instantiate_from_frame_and_normalize_erasing_regions", + "{}", + frame.instance + ); frame .instance .try_instantiate_mir_and_normalize_erasing_regions( |
