Move for loop desugaring to lowering

This commit is contained in:
Nick Cameron
2015-09-28 15:00:15 +13:00
parent 56713a1684
commit 20083c1e1f
12 changed files with 420 additions and 214 deletions

View File

@@ -375,6 +375,10 @@ pub const CRATE_NODE_ID: NodeId = 0;
/// small, positive ids.
pub const DUMMY_NODE_ID: NodeId = !0;
pub trait NodeIdAssigner {
fn next_node_id(&self) -> NodeId;
}
/// The AST represents all type param bounds as types.
/// typeck::collect::compute_bounds matches these against
/// the "special" built-in traits (see middle::lang_items) and