diff options
| author | bors <bors@rust-lang.org> | 2024-04-13 13:12:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-13 13:12:56 +0000 |
| commit | 3a0db6c15251a56a02f4d0171d3e9586f86abd44 (patch) | |
| tree | babfe145eeaaaed18e5bba0825802edf6f8b1f39 /compiler/rustc_session/src | |
| parent | 7106800e16085bf1805cc8e75866ed0f0efd85d9 (diff) | |
| parent | ed62b57c86a7d2985a4eae817bbce807f1ca957e (diff) | |
| download | rust-3a0db6c15251a56a02f4d0171d3e9586f86abd44.tar.gz rust-3a0db6c15251a56a02f4d0171d3e9586f86abd44.zip | |
Auto merge of #123854 - petrochenkov:searchdirs2, r=lqd
linker: Remove laziness and caching from native search directory walks It shouldn't be necessary for performance now. Follow up to https://github.com/rust-lang/rust/pull/123827.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/filesearch.rs | 5 |
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 { |
