1
Fork 0

rollup merge of #18445 : alexcrichton/index-mut

Conflicts:
	src/libcollections/vec.rs
This commit is contained in:
Alex Crichton 2014-10-30 09:03:21 -07:00
commit c10c163377
46 changed files with 165 additions and 271 deletions

View file

@ -1231,7 +1231,7 @@ impl Stack {
InternalIndex(i) => { i + 1 }
_ => { panic!(); }
};
*self.stack.get_mut(len - 1) = InternalIndex(idx);
self.stack[len - 1] = InternalIndex(idx);
}
}