@@ -114,9 +114,6 @@ impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
114114 ( & ExprKind :: Index ( ref la, ref li) , & ExprKind :: Index ( ref ra, ref ri) ) => {
115115 self . eq_expr ( la, ra) && self . eq_expr ( li, ri)
116116 } ,
117- ( & ExprKind :: If ( ref lc, ref lt, ref le) , & ExprKind :: If ( ref rc, ref rt, ref re) ) => {
118- self . eq_expr ( lc, rc) && self . eq_expr ( & * * lt, & * * rt) && both ( le, re, |l, r| self . eq_expr ( l, r) )
119- } ,
120117 ( & ExprKind :: Lit ( ref l) , & ExprKind :: Lit ( ref r) ) => l. node == r. node ,
121118 ( & ExprKind :: Loop ( ref lb, ref ll, ref lls) , & ExprKind :: Loop ( ref rb, ref rl, ref rls) ) => {
122119 lls == rls && self . eq_block ( lb, rb) && both ( ll, rl, |l, r| l. ident . as_str ( ) == r. ident . as_str ( ) )
@@ -493,15 +490,6 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
493490 let c: fn ( _, _, _) -> _ = ExprKind :: InlineAsm ;
494491 c. hash ( & mut self . s ) ;
495492 } ,
496- ExprKind :: If ( ref cond, ref t, ref e) => {
497- let c: fn ( _, _, _) -> _ = ExprKind :: If ;
498- c. hash ( & mut self . s ) ;
499- self . hash_expr ( cond) ;
500- self . hash_expr ( & * * t) ;
501- if let Some ( ref e) = * e {
502- self . hash_expr ( e) ;
503- }
504- } ,
505493 ExprKind :: Lit ( ref l) => {
506494 let c: fn ( _) -> _ = ExprKind :: Lit ;
507495 c. hash ( & mut self . s ) ;
0 commit comments