Skip to content

Commit ff226be

Browse files
committed
---
yaml --- r: 11793 b: refs/heads/master c: db77c38 h: refs/heads/master i: 11791: 312688e v: v3
1 parent 1b811a0 commit ff226be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 864ff4707e21fc038ae33e2aed31264a39c5dac7
2+
refs/heads/master: db77c38fc9048e5467ab85d1855110f894d380f4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/region.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ type ctxt = {
5353
in_alt: bool
5454
};
5555

56-
fn region_to_scope(_region_map: @region_map, region: ty::region)
56+
fn region_to_scope(region_map: @region_map, region: ty::region)
5757
-> ast::node_id {
5858
ret alt region {
5959
ty::re_caller(def_id) { def_id.node }
60-
ty::re_named(_) { fail "TODO: named regions" }
60+
ty::re_named(def_id) { region_map.region_name_to_fn.get(def_id) }
6161
ty::re_block(node_id) { node_id }
6262
};
6363
}

0 commit comments

Comments
 (0)