Don't hash spans in SpanlessHasher
This commit is contained in:
parent
1d0f62570b
commit
ef18ece564
@ -411,7 +411,7 @@ pub fn hash_expr(&mut self, e: &Expr) {
|
|||||||
self.hash_expr(r);
|
self.hash_expr(r);
|
||||||
},
|
},
|
||||||
ExprKind::AssignOp(ref o, ref l, ref 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(l);
|
||||||
self.hash_expr(r);
|
self.hash_expr(r);
|
||||||
},
|
},
|
||||||
@ -460,7 +460,7 @@ pub fn hash_expr(&mut self, e: &Expr) {
|
|||||||
},
|
},
|
||||||
ExprKind::InlineAsm(..) | ExprKind::Err => {},
|
ExprKind::InlineAsm(..) | ExprKind::Err => {},
|
||||||
ExprKind::Lit(ref l) => {
|
ExprKind::Lit(ref l) => {
|
||||||
l.hash(&mut self.s);
|
l.node.hash(&mut self.s);
|
||||||
},
|
},
|
||||||
ExprKind::Loop(ref b, ref i, _) => {
|
ExprKind::Loop(ref b, ref i, _) => {
|
||||||
self.hash_block(b);
|
self.hash_block(b);
|
||||||
|
Loading…
Reference in New Issue
Block a user