From ed62b57c86a7d2985a4eae817bbce807f1ca957e Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Fri, 12 Apr 2024 17:01:46 +0300 Subject: linker: Remove laziness and caching from native search directory walks It shouldn't be necessary for performance now. --- compiler/rustc_session/src/filesearch.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'compiler/rustc_session/src') 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 { - self.search_paths().map(|sp| &*sp.dir) - } } pub fn make_target_lib_path(sysroot: &Path, target_triple: &str) -> PathBuf { -- cgit 1.4.1-3-g733a5