about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-09-08 02:42:00 +0000
committerMichael Goulet <michael@errs.io>2022-09-08 02:52:57 +0000
commit97668a558955ded299db6ef145933be7677e7fbc (patch)
treec603b900b863acf71f3ffe30c1292c1975f5a7d1 /compiler
parent2c94102df522aa6c2f69175ad929761cfbe284ac (diff)
downloadrust-97668a558955ded299db6ef145933be7677e7fbc.tar.gz
rust-97668a558955ded299db6ef145933be7677e7fbc.zip
We can print futures with {integer} too
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/ty/print/pretty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs
index b46813e08f1..979a72d400f 100644
--- a/compiler/rustc_middle/src/ty/print/pretty.rs
+++ b/compiler/rustc_middle/src/ty/print/pretty.rs
@@ -923,7 +923,7 @@ pub trait PrettyPrinter<'tcx>:
                         {
                             if let ty::Generator(_, substs, _) = substs.type_at(0).kind() {
                                 let return_ty = substs.as_generator().return_ty();
-                                if !return_ty.is_ty_infer() {
+                                if !return_ty.is_ty_var() {
                                     return_ty.into()
                                 } else {
                                     continue;