Skip to content

Commit 4b4d734

Browse files
committed
Also hash mem::discriminant in hash_stmt
1 parent f11b236 commit 4b4d734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/utils/hir_utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,8 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
578578
}
579579

580580
pub fn hash_stmt(&mut self, b: &Stmt) {
581+
std::mem::discriminant(&b.node).hash(&mut self.s);
582+
581583
match b.node {
582584
StmtKind::Local(ref local) => {
583585
if let Some(ref init) = local.init {

0 commit comments

Comments
 (0)