From 89df5be18f2e62f5a8244f132fe50dbaa9fec49b Mon Sep 17 00:00:00 2001 From: damirka Date: Mon, 18 Oct 2021 17:48:39 +0200 Subject: [PATCH] fixes the random flying bug with duplicates --- ast/src/common/identifier.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast/src/common/identifier.rs b/ast/src/common/identifier.rs index 971f473563..448e92ba0d 100644 --- a/ast/src/common/identifier.rs +++ b/ast/src/common/identifier.rs @@ -90,7 +90,7 @@ impl fmt::Debug for Identifier { impl PartialEq for Identifier { fn eq(&self, other: &Self) -> bool { - self.name == other.name + self.name == other.name && self.span == other.span } }