about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-05-20 14:46:18 +0200
committerlcnr <rust@lcnr.de>2022-05-21 08:13:17 +0200
commitdb11c1939cfca105116a5cdf13f63e5005471aad (patch)
treefcae9fbaee07deb6c41809b591f6e236b84d133c /compiler
parent39a03779f8412c776cebaca7173369dbc0025d50 (diff)
downloadrust-db11c1939cfca105116a5cdf13f63e5005471aad.tar.gz
rust-db11c1939cfca105116a5cdf13f63e5005471aad.zip
update mir user type printing and apparently fix an ICE
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/mir/pretty.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/mir/pretty.rs b/compiler/rustc_middle/src/mir/pretty.rs
index 8111409b8bc..eaa68bf1b38 100644
--- a/compiler/rustc_middle/src/mir/pretty.rs
+++ b/compiler/rustc_middle/src/mir/pretty.rs
@@ -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() {