librustc: fix fallout

This commit is contained in:
Jorge Aparicio 2014-12-03 19:52:54 -05:00
parent fee500d312
commit 5a9047b9b3

View File

@ -420,11 +420,11 @@ impl<T> VecPerParamSpace<T> {
spaces.iter().all(|&space| { pred(self.get_slice(space)) })
}
pub fn all(&self, pred: |&T| -> bool) -> bool {
pub fn all<P>(&self, pred: P) -> bool where P: FnMut(&T) -> bool {
self.iter().all(pred)
}
pub fn any(&self, pred: |&T| -> bool) -> bool {
pub fn any<P>(&self, pred: P) -> bool where P: FnMut(&T) -> bool {
self.iter().any(pred)
}