AST.hs
2.73 KB
-
fix trivial hash collisions · 2f860ff2
Data.Hashable can produce hashes differing little in their upper bits if only the last character of the string is changed. Because we were using the upper bits of the hash in shortHash, this could lead to avoidable hash collisions. This change includes minor simplification optimizations which surfaced this collision in the existing struct_ident_scope test.
Zachary Snow committed