Skip to content

Commit

Permalink
Introduce HirId, a replacement for NodeId after lowering to HIR.
Browse files Browse the repository at this point in the history
HirId has a more stable representation than NodeId, meaning that
modifications to one item don't influence (part of) the IDs within
other items. The other part is a DefIndex for which there already
is a way of stable hashing and persistence.

This commit introduces the HirId type and generates a HirId for
every NodeId during HIR lowering, but the resulting values are
not yet used anywhere, except in consistency checks.
  • Loading branch information
michaelwoerister committed Mar 22, 2017
1 parent 559127b commit bc259ee
Show file tree
Hide file tree
Showing 7 changed files with 1,286 additions and 787 deletions.

0 comments on commit bc259ee

Please sign in to comment.