about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-12-25 01:08:59 +0000
committerMichael Goulet <michael@errs.io>2024-12-25 01:08:59 +0000
commit9bcd1dee9507fe68a31842b7676b9631d69781fa (patch)
treea7b96559c3d867f1d74daa945a8734fabf0ec1e5 /compiler/rustc_middle/src
parent409998c4e8cae45344fd434b358b697cc93870d0 (diff)
downloadrust-9bcd1dee9507fe68a31842b7676b9631d69781fa.tar.gz
rust-9bcd1dee9507fe68a31842b7676b9631d69781fa.zip
Actually print all the relevant parts of a coroutine in verbose mode
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/ty/print/pretty.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs
index 8e89331ef03..9fe1caa4b58 100644
--- a/compiler/rustc_middle/src/ty/print/pretty.rs
+++ b/compiler/rustc_middle/src/ty/print/pretty.rs
@@ -841,6 +841,12 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
                     p!(
                         " upvar_tys=",
                         print(args.as_coroutine().tupled_upvars_ty()),
+                        " resume_ty=",
+                        print(args.as_coroutine().resume_ty()),
+                        " yield_ty=",
+                        print(args.as_coroutine().yield_ty()),
+                        " return_ty=",
+                        print(args.as_coroutine().return_ty()),
                         " witness=",
                         print(args.as_coroutine().witness())
                     );