diff options
| author | Stypox <stypox@pm.me> | 2025-07-31 12:16:18 +0200 |
|---|---|---|
| committer | Stypox <stypox@pm.me> | 2025-08-11 14:34:23 +0200 |
| commit | 99769bc301d6e9187d0e7881bb36162fd48fd573 (patch) | |
| tree | 8287da05ae501078b34a93766fbce9cb3c8c8c11 /compiler/rustc_const_eval/src/interpret/step.rs | |
| parent | a6620a45bd29575cce67b6a0ab2956aef105e324 (diff) | |
| download | rust-99769bc301d6e9187d0e7881bb36162fd48fd573.tar.gz rust-99769bc301d6e9187d0e7881bb36162fd48fd573.zip | |
Add tracing to resolve-related functions
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/step.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/step.rs | 6 |
1 files changed, 5 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..04871faa3e6 100644 --- a/compiler/rustc_const_eval/src/interpret/step.rs +++ b/compiler/rustc_const_eval/src/interpret/step.rs @@ -560,7 +560,11 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { "Async Drop must be expanded or reset to sync in runtime MIR" ); let place = self.eval_place(place)?; - let instance = Instance::resolve_drop_in_place(*self.tcx, place.layout.ty); + let instance = { + let _trace = + enter_trace_span!(M, resolve::resolve_drop_in_place, ty = ?place.layout.ty); + Instance::resolve_drop_in_place(*self.tcx, place.layout.ty) + }; if let ty::InstanceKind::DropGlue(_, None) = instance.def { // This is the branch we enter if and only if the dropped type has no drop glue // whatsoever. This can happen as a result of monomorphizing a drop of a |
