]> git.lizzy.rs Git - rust.git/commit
Auto merge of #33296 - jseyfried:non_idempotent_lowering, r=nrc
authorbors <bors@rust-lang.org>
Mon, 2 May 2016 01:28:24 +0000 (18:28 -0700)
committerbors <bors@rust-lang.org>
Mon, 2 May 2016 01:28:24 +0000 (18:28 -0700)
commit855fb6192263a5c059325bb4b4e10b55e4e8ddbb
tree47cc5ccdbfa24041b35bd1fc71811a267613c4c0
parentadda14a0339ff47c526d8fb6897d70fbd73a5768
parentef69ef81e31b248c0eb5ca6b95ab0f302f49e77c
Auto merge of #33296 - jseyfried:non_idempotent_lowering, r=nrc

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
src/librustc_driver/driver.rs