rollup merge of #20554: huonw/mut-pattern

Conflicts:
	src/librustc_typeck/check/_match.rs
This commit is contained in:
Alex Crichton
2015-01-05 18:38:51 -08:00
19 changed files with 92 additions and 26 deletions

View File

@@ -169,7 +169,8 @@ impl<T: FloatMath + FromPrimitive> Stats<T> for [T] {
fn sum(&self) -> T {
let mut partials = vec![];
for &mut x in self.iter() {
for &x in self.iter() {
let mut x = x;
let mut j = 0;
// This inner loop applies `hi`/`lo` summation to each
// partial so that the list of partial sums remains exact.