Skip to content

Commit

Permalink
Make SearchPath::new public
Browse files Browse the repository at this point in the history
  • Loading branch information
Vetle Rasmussen committed Sep 11, 2024
1 parent 4c5fc2c commit 9566163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_session/src/search_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9566163

Please sign in to comment.