Skip to content

Commit cb1efb0

Browse files
committed
rustc: Fix long lines
1 parent 8f9afec commit cb1efb0

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/rustc/middle/region.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ type ctxt = {
3333
names_in_scope: hashmap<str,ast::def_id>,
3434

3535
/*
36-
* A list of local IDs that will be parented to the next block we traverse.
37-
* This is used when resolving `alt` statements. Since we see the pattern
38-
* before the associated block, upon seeing a pattern we must parent all the
39-
* bindings in that pattern to the next block we see.
36+
* A list of local IDs that will be parented to the next block we
37+
* traverse. This is used when resolving `alt` statements. Since we see
38+
* the pattern before the associated block, upon seeing a pattern we must
39+
* parent all the bindings in that pattern to the next block we see.
4040
*/
4141
mut queued_locals: [ast::node_id],
4242

@@ -183,12 +183,14 @@ fn resolve_pat(pat: @ast::pat, cx: ctxt, visitor: visit::vt<ctxt>) {
183183
}
184184
_ {
185185
/*
186-
* This names a local. Enqueue it or bind it to the containing
187-
* block, depending on whether we're in an alt or not.
186+
* This names a local. Enqueue it or bind it to the
187+
* containing block, depending on whether we're in an alt
188+
* or not.
188189
*/
189190
alt cx.parent {
190191
pa_block(block_id) {
191-
cx.region_map.local_blocks.insert(pat.id, block_id);
192+
let local_blocks = cx.region_map.local_blocks;
193+
local_blocks.insert(pat.id, block_id);
192194
}
193195
pa_alt {
194196
vec::push(cx.queued_locals, pat.id);

0 commit comments

Comments
 (0)