about summary refs log tree commit diff
path: root/src/librustpkg/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustpkg/util.rs')
-rw-r--r--src/librustpkg/util.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index 3824f6d38de..026f443ec79 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -285,11 +285,7 @@ pub fn compile_input(context: &BuildContext,
                                       debug!("a dependency: {}", p.display());
                                       // Pass the directory containing a dependency
                                       // as an additional lib search path
-                                      if !addl_lib_search_paths.contains(&p) {
-                                          // Might be inefficient, but this set probably
-                                          // won't get too large -- tjc
-                                          addl_lib_search_paths.push(p);
-                                      }
+                                      addl_lib_search_paths.insert(p);
                                   });
 
     // Inject the link attributes so we get the right package name and version