Skip to content

Commit 4c01702

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 164739 b: refs/heads/try c: 5a9047b h: refs/heads/master i: 164737: 78c691e 164735: 8b6b89c v: v3
1 parent 4c57cbe commit 4c01702

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5-
refs/heads/try: fee500d3124544ee6d9c59d9d9b15927172458d8
5+
refs/heads/try: 5a9047b9b3109be22c219519120881189ca6b61d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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)