]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/metadata/filesearch.rs
auto merge of #13584 : rcxdude/rust/cross-syntax-ext, r=alexcrichton
[rust.git] / src / librustc / metadata / filesearch.rs
index 3e1e4e3f2f73df14670e3cf14b37dcbb8574043b..a72e28eb805b1fb3de3e07bc71d1c2b8f43f3a8d 100644 (file)
@@ -93,9 +93,9 @@ pub fn search(&self, pick: pick) {
             match fs::readdir(lib_search_path) {
                 Ok(files) => {
                     let mut rslt = FileDoesntMatch;
-                    let is_rlib = |p: & &Path| {
+                    fn is_rlib(p: & &Path) -> bool {
                         p.extension_str() == Some("rlib")
-                    };
+                    }
                     // Reading metadata out of rlibs is faster, and if we find both
                     // an rlib and a dylib we only read one of the files of
                     // metadata, so in the name of speed, bring all rlib files to