Fix bug in mutable-local-marking
Locals passed by mutable alias weren't being marked as mutated
This commit is contained in:
parent
9db4d9c6fd
commit
855e0a4713
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user