Don't hash spans in SpanlessHasher

This commit is contained in:
flip1995 2019-10-22 11:17:16 +02:00
parent 1d0f62570b
commit ef18ece564
No known key found for this signature in database
GPG Key ID: 693086869D506637

View File

@ -411,7 +411,7 @@ pub fn hash_expr(&mut self, e: &Expr) {
self.hash_expr(r);
},
ExprKind::AssignOp(ref o, ref l, ref r) => {
o.hash(&mut self.s);
o.node.hash(&mut self.s);
self.hash_expr(l);
self.hash_expr(r);
},
@ -460,7 +460,7 @@ pub fn hash_expr(&mut self, e: &Expr) {
},
ExprKind::InlineAsm(..) | ExprKind::Err => {},
ExprKind::Lit(ref l) => {
l.hash(&mut self.s);
l.node.hash(&mut self.s);
},
ExprKind::Loop(ref b, ref i, _) => {
self.hash_block(b);