Skip to content

Commit 9566163

Browse files
author
Vetle Rasmussen
committed
Make SearchPath::new public
1 parent 4c5fc2c commit 9566163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/search_paths.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl SearchPath {
9696
Self::new(PathKind::All, make_target_lib_path(sysroot, triple))
9797
}
9898

99-
fn new(kind: PathKind, dir: PathBuf) -> Self {
99+
pub fn new(kind: PathKind, dir: PathBuf) -> Self {
100100
// Get the files within the directory.
101101
let files = match std::fs::read_dir(&dir) {
102102
Ok(files) => files

0 commit comments

Comments
 (0)