Fix bug in mutable-local-marking

Locals passed by mutable alias weren't being marked as mutated
This commit is contained in:
Marijn Haverbeke 2011-08-26 16:24:54 +02:00
parent 9db4d9c6fd
commit 855e0a4713

View File

@ -210,6 +210,7 @@ fn check_call(cx: &ctx, f: &@ast::expr, args: &[@ast::expr], sc: &scope) ->
~"passing an immutable object \
field by mutable alias");
}
cx.mut_map.insert(dnum, ());
} else {
cx.tcx.sess.span_err(
arg.span,