Skip to content

Commit b7c54f3

Browse files
committed
Use tracing macro syntax instead of format()
1 parent 2b501a3 commit b7c54f3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/rustc_const_eval/src/interpret/eval_context.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
325325
let _span = enter_trace_span!(
326326
M,
327327
"instantiate_from_frame_and_normalize_erasing_regions",
328-
"{}",
329-
frame.instance
328+
%frame.instance
330329
);
331330
frame
332331
.instance

compiler/rustc_const_eval/src/interpret/validity.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,9 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
14181418
let _span = enter_trace_span!(
14191419
M,
14201420
"validate_operand",
1421-
"recursive={recursive}, reset_provenance_and_padding={reset_provenance_and_padding}, val={val:?}"
1421+
recursive,
1422+
reset_provenance_and_padding,
1423+
?val,
14221424
);
14231425

14241426
// Note that we *could* actually be in CTFE here with `-Zextra-const-ub-checks`, but it's

0 commit comments

Comments
 (0)