]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/hir/print.rs
Fix impl Trait Lifetime Handling
[rust.git] / src / librustc / hir / print.rs
index 7d0f26ba34d4159770c7f3b0710e4b69b3e95188..d94dd24af3edc74277110793b5c7a9e6449ee334 100644 (file)
@@ -421,8 +421,11 @@ pub fn print_type(&mut self, ty: &hir::Ty) -> io::Result<()> {
                     self.print_lifetime(lifetime)?;
                 }
             }
-            hir::TyImplTrait(ref bounds) => {
-                self.print_bounds("impl ", &bounds[..])?;
+            hir::TyImplTraitExistential(ref existty, ref _lifetimes) => {
+                self.print_bounds("impl", &existty.bounds[..])?;
+            }
+            hir::TyImplTraitUniversal(_, ref bounds) => {
+                self.print_bounds("impl", &bounds[..])?;
             }
             hir::TyArray(ref ty, v) => {
                 self.s.word("[")?;