Also hash mem::discriminant in hash_stmt

This commit is contained in:
flip1995 2019-05-14 14:13:23 +02:00
parent f11b236087
commit 4b4d734758
No known key found for this signature in database
GPG Key ID: 01C836B640FFDFB1

View File

@ -578,6 +578,8 @@ impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
}
pub fn hash_stmt(&mut self, b: &Stmt) {
std::mem::discriminant(&b.node).hash(&mut self.s);
match b.node {
StmtKind::Local(ref local) => {
if let Some(ref init) = local.init {