Cache ids between lowering runs

So that lowering is reproducible
This commit is contained in:
Nick Cameron
2015-09-30 16:17:37 +13:00
parent ce80094632
commit 21205f4f9e
7 changed files with 86 additions and 24 deletions

View File

@@ -377,6 +377,7 @@ pub const DUMMY_NODE_ID: NodeId = !0;
pub trait NodeIdAssigner {
fn next_node_id(&self) -> NodeId;
fn peek_node_id(&self) -> NodeId;
}
/// The AST represents all type param bounds as types.