@@ -33,10 +33,10 @@ type ctxt = {
33
33
names_in_scope : hashmap < str , ast:: def_id > ,
34
34
35
35
/*
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.
40
40
*/
41
41
mut queued_locals : [ ast:: node_id ] ,
42
42
@@ -183,12 +183,14 @@ fn resolve_pat(pat: @ast::pat, cx: ctxt, visitor: visit::vt<ctxt>) {
183
183
}
184
184
_ {
185
185
/*
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.
188
189
*/
189
190
alt cx. parent {
190
191
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) ;
192
194
}
193
195
pa_alt {
194
196
vec : : push ( cx. queued_locals , pat. id ) ;
0 commit comments