Skip to content

Commit 82ab2c1

Browse files
committed
---
yaml --- r: 5441 b: refs/heads/master c: ea67099 h: refs/heads/master i: 5439: c01ddda v: v3
1 parent aad5ead commit 82ab2c1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1b3023e4d02cd56c8e4d83de02ed7edacd33f839
2+
refs/heads/master: ea670992348f8a80fe467dd8ef73a3d2acd0232b

trunk/src/comp/middle/mut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn expr_root(tcx: ty::ctxt, ex: @expr, autoderef: bool) ->
8686
let mut = false;
8787
alt ty::struct(tcx, base_t) {
8888
ty::ty_box(mt) { mut = mt.mut != imm; }
89-
ty::ty_uniq(_) { }
89+
ty::ty_uniq(mt) { mut = mt.mut != imm; }
9090
ty::ty_res(_, _, _) { }
9191
ty::ty_tag(_, _) { }
9292
ty::ty_ptr(mt) { mut = mt.mut != imm; }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
let i = ~mutable 0;
3+
*i = 1;
4+
assert *i == 1;
5+
}

0 commit comments

Comments
 (0)