diff options
| author | lcnr <rust@lcnr.de> | 2022-05-20 14:46:18 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-05-21 08:13:17 +0200 |
| commit | db11c1939cfca105116a5cdf13f63e5005471aad (patch) | |
| tree | fcae9fbaee07deb6c41809b591f6e236b84d133c /compiler | |
| parent | 39a03779f8412c776cebaca7173369dbc0025d50 (diff) | |
| download | rust-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.rs | 5 |
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() { |
