update mir user type printing and apparently fix an ICE
This commit is contained in:
parent
39a03779f8
commit
db11c1939c
3 changed files with 11 additions and 48 deletions
|
@ -1007,10 +1007,11 @@ fn write_user_type_annotations(
|
|||
for (index, annotation) in body.user_type_annotations.iter_enumerated() {
|
||||
writeln!(
|
||||
w,
|
||||
"| {:?}: {:?} at {}",
|
||||
"| {:?}: user_ty: {:?}, span: {}, inferred_ty: {:?}",
|
||||
index.index(),
|
||||
annotation.user_ty,
|
||||
tcx.sess.source_map().span_to_embeddable_string(annotation.span)
|
||||
tcx.sess.source_map().span_to_embeddable_string(annotation.span),
|
||||
annotation.inferred_ty,
|
||||
)?;
|
||||
}
|
||||
if !body.user_type_annotations.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue