diff options
| author | Vetle Rasmussen <vetle.rasmussen@muybridge.com> | 2024-09-11 11:40:01 +0200 |
|---|---|---|
| committer | Vetle Rasmussen <vetle.rasmussen@muybridge.com> | 2024-09-11 11:40:01 +0200 |
| commit | 9566163364a91678006a2b22d62d2a73a6012ff5 (patch) | |
| tree | 14ec952f46375fb47376e21c0765a21774411a42 /compiler/rustc_session | |
| parent | 4c5fc2c334f1cc305eea79ed0b8fdb276342d101 (diff) | |
| download | rust-9566163364a91678006a2b22d62d2a73a6012ff5.tar.gz rust-9566163364a91678006a2b22d62d2a73a6012ff5.zip | |
Make SearchPath::new public
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/search_paths.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ impl SearchPath { 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 |
