diff options
| author | Stypox <stypox@pm.me> | 2025-07-30 18:17:02 +0200 |
|---|---|---|
| committer | Stypox <stypox@pm.me> | 2025-07-31 00:40:00 +0200 |
| commit | e1f674cfa962fc76adbc4cfe95e9b3434299eede (patch) | |
| tree | f334192ae9a4e0371308fa58fb04603917a9edc8 | |
| parent | 3b5fec08f1ad2725ffdbd2172035589314b4a4c8 (diff) | |
| download | rust-e1f674cfa962fc76adbc4cfe95e9b3434299eede.tar.gz rust-e1f674cfa962fc76adbc4cfe95e9b3434299eede.zip | |
Use specific name for "frame" span field
Otherwise the field would be named "message" by default
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/stack.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/stack.rs b/compiler/rustc_const_eval/src/interpret/stack.rs index 25d163bba62..73cc87508ef 100644 --- a/compiler/rustc_const_eval/src/interpret/stack.rs +++ b/compiler/rustc_const_eval/src/interpret/stack.rs @@ -401,7 +401,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { // to put the "frame" span on a separate trace thread/line than other spans, to make the // visualization in <https://ui.perfetto.dev> easier to interpret. It is set to a value of // [tracing::field::Empty] so that other tracing layers (e.g. the logger) will ignore it. - let span = info_span!("frame", tracing_separate_thread = Empty, "{}", instance); + let span = info_span!("frame", tracing_separate_thread = Empty, frame = %instance); self.frame_mut().tracing_span.enter(span); interp_ok(()) |
