We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c5fc2c commit 9566163Copy full SHA for 9566163
compiler/rustc_session/src/search_paths.rs
@@ -96,7 +96,7 @@ impl SearchPath {
96
Self::new(PathKind::All, make_target_lib_path(sysroot, triple))
97
}
98
99
- fn new(kind: PathKind, dir: PathBuf) -> Self {
+ pub fn new(kind: PathKind, dir: PathBuf) -> Self {
100
// Get the files within the directory.
101
let files = match std::fs::read_dir(&dir) {
102
Ok(files) => files
0 commit comments