File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
branches/batch/src/librustc/metadata Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
29
29
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
30
30
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
- refs/heads/batch: 1d21dad1d29d57875ff47b38e5894668f5bec6f9
32
+ refs/heads/batch: c8cf3a307b94349cd4948a860d62730945e8d805
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ pub enum FileMatch {
30
30
// FIXME (#2658): I'm not happy how this module turned out. Should
31
31
// probably just be folded into cstore.
32
32
33
- /// Functions with type `pick` take a parent directory as well as
34
- /// a file found in that directory.
35
- pub type pick< ' a > = |path : & Path |: ' a -> FileMatch ;
36
-
37
33
pub struct FileSearch < ' a > {
38
34
pub sysroot : & ' a Path ,
39
35
pub search_paths : & ' a SearchPaths ,
@@ -95,7 +91,7 @@ impl<'a> FileSearch<'a> {
95
91
make_target_lib_path ( self . sysroot , self . triple )
96
92
}
97
93
98
- pub fn search ( & self , pick : pick ) {
94
+ pub fn search < F > ( & self , mut pick : F ) where F : FnMut ( & Path ) -> FileMatch {
99
95
self . for_each_lib_search_path ( |lib_search_path| {
100
96
debug ! ( "searching {}" , lib_search_path. display( ) ) ;
101
97
match fs:: readdir ( lib_search_path) {
You can’t perform that action at this time.
0 commit comments