Skip to content

Commit

Permalink
Auto merge of #33296 - jseyfried:non_idempotent_lowering, r=nrc
Browse files Browse the repository at this point in the history
Remove the requirement that ast->hir lowering be reproducible

This PR changes the ast->hir lowerer to be non-reproducible, and it removes the lowering context's id cache.

If the `hir` of an `ast` node needs to be reproduced, we can use the hir map instead of the lowerer -- for example, `tcx.map.expect_expr(expr.id)` instead of `lower_expr(lcx, expr)`.

r? @nrc
  • Loading branch information
bors committed May 2, 2016
2 parents adda14a + ef69ef8 commit 855fb61
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 600 deletions.
Loading

0 comments on commit 855fb61

Please sign in to comment.