Skip to content

Commit 5a9047b

Browse files
author
Jorge Aparicio
committed
librustc: fix fallout
1 parent fee500d commit 5a9047b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/subst.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,11 @@ impl<T> VecPerParamSpace<T> {
420420
spaces.iter().all(|&space| { pred(self.get_slice(space)) })
421421
}
422422

423-
pub fn all(&self, pred: |&T| -> bool) -> bool {
423+
pub fn all<P>(&self, pred: P) -> bool where P: FnMut(&T) -> bool {
424424
self.iter().all(pred)
425425
}
426426

427-
pub fn any(&self, pred: |&T| -> bool) -> bool {
427+
pub fn any<P>(&self, pred: P) -> bool where P: FnMut(&T) -> bool {
428428
self.iter().any(pred)
429429
}
430430

0 commit comments

Comments
 (0)