@@ -438,7 +438,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
438438 self . hash_expr ( fun) ;
439439 self . hash_exprs ( args) ;
440440 } ,
441- ExprKind :: Cast ( ref e, ref ty) => {
441+ ExprKind :: Cast ( ref e, ref ty) | ExprKind :: Type ( ref e , ref ty ) => {
442442 self . hash_expr ( e) ;
443443 self . hash_ty ( ty) ;
444444 } ,
@@ -518,10 +518,6 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
518518 ExprKind :: Array ( ref v) => {
519519 self . hash_exprs ( v) ;
520520 } ,
521- ExprKind :: Type ( ref e, ref ty) => {
522- self . hash_expr ( e) ;
523- self . hash_ty ( ty) ;
524- } ,
525521 ExprKind :: Unary ( lop, ref le) => {
526522 lop. hash ( & mut self . s ) ;
527523 self . hash_expr ( le) ;
@@ -585,7 +581,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
585581 pub fn hash_lifetime ( & mut self , lifetime : & Lifetime ) {
586582 std:: mem:: discriminant ( & lifetime. name ) . hash ( & mut self . s ) ;
587583 if let LifetimeName :: Param ( ref name) = lifetime. name {
588- std:: mem:: discriminant ( & name) . hash ( & mut self . s ) ;
584+ std:: mem:: discriminant ( name) . hash ( & mut self . s ) ;
589585 match name {
590586 ParamName :: Plain ( ref ident) => {
591587 ident. name . hash ( & mut self . s ) ;
@@ -603,7 +599,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
603599 }
604600
605601 pub fn hash_tykind ( & mut self , ty : & TyKind ) {
606- std:: mem:: discriminant ( & ty) . hash ( & mut self . s ) ;
602+ std:: mem:: discriminant ( ty) . hash ( & mut self . s ) ;
607603 match ty {
608604 TyKind :: Slice ( ty) => {
609605 self . hash_ty ( ty) ;
0 commit comments