Skip to content

Commit fd50ddf

Browse files
committed
---
yaml --- r: 14788 b: refs/heads/try c: cb1efb0 h: refs/heads/master v: v3
1 parent 1d6719d commit fd50ddf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 8f9afec5a376c8375f5184be0f4e48a3a4f751da
5+
refs/heads/try: cb1efb0092ff8b486ed5d8a1a6da699597257756
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)