Incorporate review comments (mostly fixing indentation)

Previous commit was r=nmatsakis
This commit is contained in:
Tim Chevalier 2012-10-22 09:44:56 -07:00
parent dd66e7549b
commit dca0776747
3 changed files with 26 additions and 28 deletions

View File

@ -596,7 +596,7 @@ struct Liveness {
users: ~[mut users],
// The list of node IDs for the nested loop scopes
// we're in.
mut loop_scope: @DVec<node_id>,
loop_scope: DVec<node_id>,
// mappings from loop node ID to LiveNode
// ("break" label should map to loop node ID,
// it probably doesn't now)

View File

@ -113,7 +113,6 @@ fn trans_while(bcx: block, cond: @ast::expr, body: ast::blk)
// | body_bcx_out --+
// next_bcx
// tjc: while should have labels...
let loop_bcx = loop_scope_block(bcx, next_bcx, None, ~"`while`",
body.info());
let cond_bcx_in = scope_block(loop_bcx, cond.info(), ~"while loop cond");

View File

@ -2564,8 +2564,7 @@ fn may_break(cx: ty::ctxt, id: ast::node_id, b: ast::blk) -> bool {
_ => false,
},
_ => false
}
}))
}}))
}
fn check_bounds_are_used(ccx: @crate_ctxt,