make --enforce-mut-vars always on, add mut annotations to remaining files

This commit is contained in:
Niko Matsakis
2012-03-22 08:39:41 -07:00
parent ea6030878a
commit dc07280b08
179 changed files with 519 additions and 508 deletions

View File

@@ -790,7 +790,7 @@ fn test_spawn_sched_blocking() {
comm::recv(start_po);
fn pingpong(po: comm::port<int>, ch: comm::chan<int>) {
let val = 20;
let mut val = 20;
while val > 0 {
val = comm::recv(po);
comm::send(ch, val - 1);