Skip to content

Commit

Permalink
Don't hash spans in SpanlessHasher
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Oct 22, 2019
1 parent 1d0f625 commit ef18ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/utils/hir_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
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);
},
Expand Down Expand Up @@ -460,7 +460,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
},
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);
Expand Down

0 comments on commit ef18ece

Please sign in to comment.