1
Fork 0

update mir user type printing and apparently fix an ICE

This commit is contained in:
lcnr 2022-05-20 14:46:18 +02:00
parent 39a03779f8
commit db11c1939c
3 changed files with 11 additions and 48 deletions

View file

@ -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() {