]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/print/pretty.rs
We can print futures with {integer} too
[rust.git] / compiler / rustc_middle / src / ty / print / pretty.rs
index b46813e08f10e78679c420020133eb52f91d2f32..979a72d400fe85a5eba178edccf3bde67d1cfd28 100644 (file)
@@ -923,7 +923,7 @@ fn pretty_print_opaque_impl_type(
                         {
                             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;