Incorporate review comments (mostly fixing indentation)
Previous commit was r=nmatsakis
This commit is contained in:
@@ -596,7 +596,7 @@ struct Liveness {
|
|||||||
users: ~[mut users],
|
users: ~[mut users],
|
||||||
// The list of node IDs for the nested loop scopes
|
// The list of node IDs for the nested loop scopes
|
||||||
// we're in.
|
// we're in.
|
||||||
mut loop_scope: @DVec<node_id>,
|
loop_scope: DVec<node_id>,
|
||||||
// mappings from loop node ID to LiveNode
|
// mappings from loop node ID to LiveNode
|
||||||
// ("break" label should map to loop node ID,
|
// ("break" label should map to loop node ID,
|
||||||
// it probably doesn't now)
|
// it probably doesn't now)
|
||||||
|
|||||||
@@ -113,7 +113,6 @@ fn trans_while(bcx: block, cond: @ast::expr, body: ast::blk)
|
|||||||
// | body_bcx_out --+
|
// | body_bcx_out --+
|
||||||
// next_bcx
|
// next_bcx
|
||||||
|
|
||||||
// tjc: while should have labels...
|
|
||||||
let loop_bcx = loop_scope_block(bcx, next_bcx, None, ~"`while`",
|
let loop_bcx = loop_scope_block(bcx, next_bcx, None, ~"`while`",
|
||||||
body.info());
|
body.info());
|
||||||
let cond_bcx_in = scope_block(loop_bcx, cond.info(), ~"while loop cond");
|
let cond_bcx_in = scope_block(loop_bcx, cond.info(), ~"while loop cond");
|
||||||
|
|||||||
@@ -2564,8 +2564,7 @@ fn may_break(cx: ty::ctxt, id: ast::node_id, b: ast::blk) -> bool {
|
|||||||
_ => false,
|
_ => false,
|
||||||
},
|
},
|
||||||
_ => false
|
_ => false
|
||||||
}
|
}}))
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_bounds_are_used(ccx: @crate_ctxt,
|
fn check_bounds_are_used(ccx: @crate_ctxt,
|
||||||
|
|||||||
Reference in New Issue
Block a user