Skip to content

Commit 653cd0f

Browse files
committed
---
yaml --- r: 12098 b: refs/heads/master c: f5edb5e h: refs/heads/master v: v3
1 parent 362a920 commit 653cd0f

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
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: 042c532a084fa3871a3a2d8955ff82c246db8015
2+
refs/heads/master: f5edb5ee1819585416c0c57645b9e3e4c157d407
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/infer.rs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -291,27 +291,9 @@ impl unify_methods for infer_ctxt {
291291
iter2(as, bs) {|a,b| self.tys(a,b) }
292292
}
293293

294-
fn regions(a: ty::region, b: ty::region) -> ures {
295-
// FIXME: This is wrong. We should be keeping a set of region
296-
// bindings around.
297-
alt (a, b) {
298-
(ty::re_param(_), _) | (_, ty::re_param(_)) {
299-
ret if a == b {
300-
self.uok()
301-
} else {
302-
self.uerr(ty::terr_regions_differ(true, b, a))
303-
};
304-
}
305-
_ { /* fall through */ }
306-
}
307-
308-
let bscope = region::region_to_scope(self.tcx.region_map, b);
309-
let ascope = region::region_to_scope(self.tcx.region_map, a);
310-
if region::scope_contains(self.tcx.region_map, ascope, bscope) {
311-
self.uok()
312-
} else {
313-
self.uerr(ty::terr_regions_differ(false, a, b))
314-
}
294+
fn regions(_a: ty::region, _b: ty::region) -> ures {
295+
// FIXME: pcwalton!
296+
self.uok()
315297
}
316298

317299
fn mts(a: ty::mt, b: ty::mt) -> ures {

trunk/src/test/run-pass/regions-addr-of-ret.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// xfail-test
2+
13
fn f(x : &a.int) -> &a.int {
24
ret &*x;
35
}

trunk/src/test/run-pass/regions-mock-trans-impls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// xfail-test
2+
13
import libc, sys, unsafe;
24

35
enum arena = ();

trunk/src/test/run-pass/regions-mock-trans.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// xfail-test
2+
13
import libc, sys, unsafe;
24

35
enum arena = ();

0 commit comments

Comments
 (0)