Skip to content

Commit 1a64153

Browse files
committed
Correct two more analyses of mutable? as mutable
I can't come up with test cases but this seems correct.
1 parent 4d9d889 commit 1a64153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/middle/mut.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ fn expr_root(tcx: ty::ctxt, ex: @expr, autoderef: bool) ->
1919
while true {
2020
alt ty::struct(tcx, t) {
2121
ty::ty_box(mt) {
22-
ds += [@{mut: mt.mut != imm, kind: unbox, outer_t: t}];
22+
ds += [@{mut: mt.mut == mut, kind: unbox, outer_t: t}];
2323
t = mt.ty;
2424
}
2525
ty::ty_uniq(mt) {
26-
ds += [@{mut: mt.mut != imm, kind: unbox, outer_t: t}];
26+
ds += [@{mut: mt.mut == mut, kind: unbox, outer_t: t}];
2727
t = mt.ty;
2828
}
2929
ty::ty_res(_, inner, tps) {

0 commit comments

Comments
 (0)