We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78a46ef + e84996b commit 38e5764Copy full SHA for 38e5764
compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -51,10 +51,11 @@ fn eval_body_using_ecx<'mir, 'tcx>(
51
assert!(!layout.is_unsized());
52
let ret = ecx.allocate(layout, MemoryKind::Stack)?;
53
54
- let name =
55
- with_no_trimmed_paths(|| ty::tls::with(|tcx| tcx.def_path_str(cid.instance.def_id())));
56
- let prom = cid.promoted.map_or_else(String::new, |p| format!("::promoted[{:?}]", p));
57
- trace!("eval_body_using_ecx: pushing stack frame for global: {}{}", name, prom);
+ trace!(
+ "eval_body_using_ecx: pushing stack frame for global: {}{}",
+ with_no_trimmed_paths(|| ty::tls::with(|tcx| tcx.def_path_str(cid.instance.def_id()))),
+ cid.promoted.map_or_else(String::new, |p| format!("::promoted[{:?}]", p))
58
+ );
59
60
ecx.push_stack_frame(
61
cid.instance,
0 commit comments