Skip to content
Commit 944a693a authored by Jim Blandy's avatar Jim Blandy Committed by Dzmitry Malyshau
Browse files

Use `UniqueArena` for types.

Ensure that each distinct type occurs only once in `Module::types`, so that we
can use `Eq` on `Type` or `TypeInner` for type equivalence, without being
confused by differing `Handle<Type>` values that point to identical types.

This removes a number of duplicate types from the ir snapshots.

Fixes #1385.
parent d026577a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment