MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way
This commit is contained in:
@@ -67,7 +67,7 @@ fn eval_body_using_ecx<'mir, 'tcx>(
|
||||
trace!(
|
||||
"eval_body_using_ecx: pushing stack frame for global: {}{}",
|
||||
with_no_trimmed_paths!(ecx.tcx.def_path_str(cid.instance.def_id())),
|
||||
cid.promoted.map_or_else(String::new, |p| format!("::promoted[{p:?}]"))
|
||||
cid.promoted.map_or_else(String::new, |p| format!("::{p:?}"))
|
||||
);
|
||||
|
||||
ecx.push_stack_frame(
|
||||
|
||||
Reference in New Issue
Block a user