core: rename vec.filter to vec.filtered

This commit is contained in:
Erick Tryzelaar
2013-01-07 21:15:25 -08:00
parent 9a7e261562
commit 2891a49f0d
12 changed files with 27 additions and 25 deletions

View File

@@ -316,11 +316,12 @@ pure fn unguarded_pat(a: &arm) -> Option<~[@pat]> {
}
fn public_methods(ms: ~[@method]) -> ~[@method] {
vec::filter(ms,
|m| match m.vis {
public => true,
_ => false
})
do ms.filtered |m| {
match m.vis {
public => true,
_ => false
}
}
}
// extract a ty_method from a trait_method. if the trait_method is