Skip to content

Commit 1376faf

Browse files
committed
---
yaml --- r: 11982 b: refs/heads/master c: b12588a h: refs/heads/master v: v3
1 parent 3e1eb43 commit 1376faf

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
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: 4e3e13302dfc32dbc347319ec1d2f2c40108f0fc
2+
refs/heads/master: b12588a197bcba39a170d78ff02a2b4f8f73ae3d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/mutbl.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ fn expr_root(tcx: ty::ctxt, ex: @expr, autoderef: bool) ->
1818
let ds = [], t = t;
1919
loop {
2020
alt ty::get(t).struct {
21-
ty::ty_box(mt) {
22-
ds += [@{mutbl: mt.mutbl == m_mutbl,
23-
kind: unbox(false),
24-
outer_t: t}];
25-
t = mt.ty;
26-
}
27-
ty::ty_uniq(mt) {
21+
ty::ty_box(mt) | ty::ty_uniq(mt) | ty::ty_rptr(_, mt) {
2822
ds += [@{mutbl: mt.mutbl == m_mutbl,
2923
kind: unbox(false),
3024
outer_t: t}];

0 commit comments

Comments
 (0)