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:
parent
c9342663df
commit
d2e9912aea
181 changed files with 796 additions and 876 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue