File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
branches/snap-stage3/src/librustc/middle Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 6c18c75f2d1d9c491f288724d355c11d3788d123
4
+ refs/heads/snap-stage3: 1070cc0109661d9f47a6e2c39ad853041ddf30e2
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -1606,11 +1606,18 @@ fn subst(cx: ctxt,
1606
1606
fold_regions_and_ty(
1607
1607
cx, typ,
1608
1608
|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
+ }
1614
1621
_ => r
1615
1622
},
1616
1623
|t| do_subst(cx, substs, t),
You can’t perform that action at this time.
0 commit comments