about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-04-12 17:01:46 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2024-04-12 17:28:00 +0300
commited62b57c86a7d2985a4eae817bbce807f1ca957e (patch)
treede7a480c7f36e1347658c1d32c71949c577d0fa1 /compiler/rustc_session/src
parent7bdae134cba57426d3c56b5de737a351762445e1 (diff)
linker: Remove laziness and caching from native search directory walks
It shouldn't be necessary for performance now.
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/filesearch.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs
index 6120900d9f4..aecf5954c4c 100644
--- a/compiler/rustc_session/src/filesearch.rs
+++ b/compiler/rustc_session/src/filesearch.rs
@@ -45,11 +45,6 @@ impl<'a> FileSearch<'a> {
         debug!("using sysroot = {}, triple = {}", sysroot.display(), triple);
         FileSearch { sysroot, triple, search_paths, tlib_path, kind }
     }
-
-    /// Returns just the directories within the search paths.
-    pub fn search_path_dirs(&self) -> impl Iterator<Item = &'a Path> {
-        self.search_paths().map(|sp| &*sp.dir)
-    }
 }
 
 pub fn make_target_lib_path(sysroot: &Path, target_triple: &str) -> PathBuf {