We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42f121 commit 9f76ca6Copy full SHA for 9f76ca6
src/librustc/metadata/filesearch.rs
@@ -39,9 +39,8 @@ pub fn mk_filesearch(maybe_sysroot: &Option<@Path>,
39
fn sysroot(&self) -> @Path { self.sysroot }
40
fn for_each_lib_search_path(&self, f: &fn(&Path) -> bool) {
41
debug!("filesearch: searching additional lib search paths");
42
- if !self.addl_lib_search_paths.each(f) {
43
- return;
44
- }
+ // a little weird
+ self.addl_lib_search_paths.each(f);
45
46
debug!("filesearch: searching target lib path");
47
if !f(&make_target_lib_path(self.sysroot,
@@ -59,7 +58,7 @@ pub fn mk_filesearch(maybe_sysroot: &Option<@Path>,
59
58
match get_rustpkg_lib_path() {
60
result::Ok(ref p) => f(p),
61
result::Err(_) => true
62
+ };
63
}
64
fn get_target_lib_path(&self) -> Path {
65
make_target_lib_path(self.sysroot, self.target_triple)
0 commit comments