new borrow checker (mass squash)

This commit is contained in:
Niko Matsakis
2013-03-15 15:24:24 -04:00
parent b5a7e8b353
commit a896440ca1
172 changed files with 6475 additions and 4303 deletions

View File

@@ -246,7 +246,7 @@ pub impl FileMap {
// the new charpos must be > the last one (or it's the first one).
let lines = &mut *self.lines;
assert!((lines.len() == 0) || (lines[lines.len() - 1] < pos));
self.lines.push(pos);
lines.push(pos);
}
// get a line from the list of pre-computed line-beginnings
@@ -308,7 +308,7 @@ pub impl CodeMap {
multibyte_chars: @mut ~[],
};
self.files.push(filemap);
files.push(filemap);
return filemap;
}