Fix arg order for vec::map call

This commit is contained in:
Marijn Haverbeke 2011-12-16 22:29:01 +01:00
parent 58a81a68ed
commit b11268780e

View File

@ -1701,10 +1701,11 @@ fn find_impls_in_item(i: @ast::item, &impls: [@_impl],
alt ck_exports { some(m) { is_exported(i.ident, m) } _ { true } } {
impls += [@{did: local_def(i.id),
ident: i.ident,
methods: vec::map({|m| @{did: local_def(m.node.id),
n_tps: vec::len(m.node.tps),
ident: m.node.ident}},
mthds)}];
methods: vec::map(mthds, {|m|
@{did: local_def(m.node.id),
n_tps: vec::len(m.node.tps),
ident: m.node.ident}
})}];
}
}
_ {}