Skip to content

Commit 64d0d44

Browse files
committed
Use new enter_trace_span! syntax for layout_of & friends
1 parent d4a3e95 commit 64d0d44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_const_eval/src/interpret/eval_context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
113113
/// See [LayoutOf::layout_of] for the original documentation.
114114
#[inline(always)]
115115
pub fn layout_of(&self, ty: Ty<'tcx>) -> <Self as LayoutOfHelpers<'tcx>>::LayoutOfResult {
116-
let _span = enter_trace_span!(M, "InterpCx::layout_of", ty = ?ty.kind());
116+
let _span = enter_trace_span!(M, layouting::layout_of, ty = ?ty.kind());
117117
LayoutOf::layout_of(self, ty)
118118
}
119119

@@ -126,7 +126,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
126126
sig: ty::PolyFnSig<'tcx>,
127127
extra_args: &'tcx ty::List<Ty<'tcx>>,
128128
) -> <Self as FnAbiOfHelpers<'tcx>>::FnAbiOfResult {
129-
let _span = enter_trace_span!(M, "InterpCx::fn_abi_of_fn_ptr", ?sig, ?extra_args);
129+
let _span = enter_trace_span!(M, layouting::fn_abi_of_fn_ptr, ?sig, ?extra_args);
130130
FnAbiOf::fn_abi_of_fn_ptr(self, sig, extra_args)
131131
}
132132

@@ -139,7 +139,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
139139
instance: ty::Instance<'tcx>,
140140
extra_args: &'tcx ty::List<Ty<'tcx>>,
141141
) -> <Self as FnAbiOfHelpers<'tcx>>::FnAbiOfResult {
142-
let _span = enter_trace_span!(M, "InterpCx::fn_abi_of_instance", ?instance, ?extra_args);
142+
let _span = enter_trace_span!(M, layouting::fn_abi_of_instance, ?instance, ?extra_args);
143143
FnAbiOf::fn_abi_of_instance(self, instance, extra_args)
144144
}
145145
}

0 commit comments

Comments
 (0)