]> git.lizzy.rs Git - rust.git/commitdiff
Fix super_relate_tys so that ! == !
authorAndrew Cann <shum@canndrew.org>
Fri, 29 Jul 2016 11:20:05 +0000 (19:20 +0800)
committerAndrew Cann <shum@canndrew.org>
Sat, 13 Aug 2016 13:37:09 +0000 (21:37 +0800)
src/librustc/ty/relate.rs

index f9263947c0379c099562fc55c35046ffc025dd0e..8b9937d9828e683b9bb706d432a10631475ab8d4 100644 (file)
@@ -462,6 +462,7 @@ pub fn super_relate_tys<'a, 'gcx, 'tcx, R>(relation: &mut R,
             Ok(tcx.types.err)
         }
 
             Ok(tcx.types.err)
         }
 
+        (&ty::TyEmpty, _) |
         (&ty::TyChar, _) |
         (&ty::TyBool, _) |
         (&ty::TyInt(_), _) |
         (&ty::TyChar, _) |
         (&ty::TyBool, _) |
         (&ty::TyInt(_), _) |