demode the each() method on vec and other iterables.
This commit is contained in:
parent
1c39f1968c
commit
cfed923600
110 changed files with 483 additions and 456 deletions
|
@ -242,7 +242,7 @@ fn get_snippet(cm: codemap::codemap, fidx: uint, lo: uint, hi: uint) -> ~str
|
|||
}
|
||||
|
||||
fn get_filemap(cm: codemap, filename: ~str) -> filemap {
|
||||
for cm.files.each |fm| { if fm.name == filename { return fm; } }
|
||||
for cm.files.each |fm| { if fm.name == filename { return *fm; } }
|
||||
//XXjdm the following triggers a mismatched type bug
|
||||
// (or expected function, found _|_)
|
||||
fail; // ("asking for " + filename + " which we don't know about");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue