vec: remove BaseIter implementation
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
This commit is contained in:
@@ -422,7 +422,7 @@ impl CodeMap {
|
||||
}
|
||||
|
||||
pub fn get_filemap(&self, filename: &str) -> @FileMap {
|
||||
for self.files.each |fm| { if filename == fm.name { return *fm; } }
|
||||
for self.files.iter().advance |fm| { if filename == fm.name { return *fm; } }
|
||||
//XXjdm the following triggers a mismatched type bug
|
||||
// (or expected function, found _|_)
|
||||
fail!(); // ("asking for " + filename + " which we don't know about");
|
||||
@@ -508,7 +508,7 @@ impl CodeMap {
|
||||
// The number of extra bytes due to multibyte chars in the FileMap
|
||||
let mut total_extra_bytes = 0;
|
||||
|
||||
for map.multibyte_chars.each |mbc| {
|
||||
for map.multibyte_chars.iter().advance |mbc| {
|
||||
debug!("codemap: %?-byte char at %?", mbc.bytes, mbc.pos);
|
||||
if mbc.pos < bpos {
|
||||
total_extra_bytes += mbc.bytes;
|
||||
|
||||
Reference in New Issue
Block a user