Skip to content

Commit ef18ece

Browse files
committed
Don't hash spans in SpanlessHasher
1 parent 1d0f625 commit ef18ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/hir_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
411411
self.hash_expr(r);
412412
},
413413
ExprKind::AssignOp(ref o, ref l, ref r) => {
414-
o.hash(&mut self.s);
414+
o.node.hash(&mut self.s);
415415
self.hash_expr(l);
416416
self.hash_expr(r);
417417
},
@@ -460,7 +460,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
460460
},
461461
ExprKind::InlineAsm(..) | ExprKind::Err => {},
462462
ExprKind::Lit(ref l) => {
463-
l.hash(&mut self.s);
463+
l.node.hash(&mut self.s);
464464
},
465465
ExprKind::Loop(ref b, ref i, _) => {
466466
self.hash_block(b);

0 commit comments

Comments
 (0)