From 9566163364a91678006a2b22d62d2a73a6012ff5 Mon Sep 17 00:00:00 2001 From: Vetle Rasmussen Date: Wed, 11 Sep 2024 11:40:01 +0200 Subject: [PATCH] Make SearchPath::new public --- compiler/rustc_session/src/search_paths.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_session/src/search_paths.rs b/compiler/rustc_session/src/search_paths.rs index d65b1b8b3f1..b212f6afa17 100644 --- a/compiler/rustc_session/src/search_paths.rs +++ b/compiler/rustc_session/src/search_paths.rs @@ -96,7 +96,7 @@ pub fn from_sysroot_and_triple(sysroot: &Path, triple: &str) -> Self { Self::new(PathKind::All, make_target_lib_path(sysroot, triple)) } - fn new(kind: PathKind, dir: PathBuf) -> Self { + pub fn new(kind: PathKind, dir: PathBuf) -> Self { // Get the files within the directory. let files = match std::fs::read_dir(&dir) { Ok(files) => files