MIR printing: print the path of uneval'd const; refer to promoteds in a consistent way
This commit is contained in:
parent
3521a2f2f3
commit
7d99e80c55
79 changed files with 114 additions and 101 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue