demode the each() method on vec and other iterables.

This commit is contained in:
Niko Matsakis 2012-09-19 16:55:01 -07:00
parent 1c39f1968c
commit cfed923600
110 changed files with 483 additions and 456 deletions

View file

@ -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");