Skip to content

Commit ac735d2

Browse files
committed
---
yaml --- r: 34403 b: refs/heads/snap-stage3 c: 1070cc0 h: refs/heads/master i: 34401: d82bbf0 34399: 291c139 v: v3
1 parent 2ee9a69 commit ac735d2

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6c18c75f2d1d9c491f288724d355c11d3788d123
4+
refs/heads/snap-stage3: 1070cc0109661d9f47a6e2c39ad853041ddf30e2
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,11 +1606,18 @@ fn subst(cx: ctxt,
16061606
fold_regions_and_ty(
16071607
cx, typ,
16081608
|r| match r {
1609-
re_bound(br_self) => substs.self_r.expect(
1610-
fmt!("ty::subst: \
1611-
Reference to self region when given substs with no \
1612-
self region, ty = %s",
1613-
::util::ppaux::ty_to_str(cx, typ))),
1609+
re_bound(br_self) => {
1610+
match substs.self_r {
1611+
None => {
1612+
cx.sess.bug(
1613+
fmt!("ty::subst: \
1614+
Reference to self region when given substs \
1615+
with no self region, ty = %s",
1616+
::util::ppaux::ty_to_str(cx, typ)))
1617+
}
1618+
Some(self_r) => self_r
1619+
}
1620+
}
16141621
_ => r
16151622
},
16161623
|t| do_subst(cx, substs, t),

0 commit comments

Comments
 (0)