]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc/infer/freshen.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / librustc / infer / freshen.rs
index 880661a882af3c38e114390d6d39226b5eccd020..ecd9759c721b2f11062386e08b259c9249737f4c 100644 (file)
@@ -168,9 +168,11 @@ impl<'a, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for TypeFreshener<'a, 'gcx, 'tcx> {
             ty::TyTrait(..) |
             ty::TyStruct(..) |
             ty::TyClosure(..) |
+            ty::TyNever |
             ty::TyTuple(..) |
             ty::TyProjection(..) |
-            ty::TyParam(..) => {
+            ty::TyParam(..) |
+            ty::TyAnon(..) => {
                 t.super_fold_with(self)
             }
         }