diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-02-01 16:24:48 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-02-02 09:06:34 +1100 |
| commit | 47b5d95db8abaaf4fdad878ec3b06dfaa2a1d74f (patch) | |
| tree | 5f766bad63b12e3243846bc68ca003cf8f290e5f /compiler/rustc_session/src | |
| parent | f916f3a36b21629d58e1b8ea4dbddc0db1316903 (diff) | |
| download | rust-47b5d95db8abaaf4fdad878ec3b06dfaa2a1d74f.tar.gz rust-47b5d95db8abaaf4fdad878ec3b06dfaa2a1d74f.zip | |
Remove `FileMatch`.
It's returned from `FileSearch::search` but it's only used to print some debug info.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/filesearch.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs index 9687d0bd8a7..e6ec16b393b 100644 --- a/compiler/rustc_session/src/filesearch.rs +++ b/compiler/rustc_session/src/filesearch.rs @@ -1,7 +1,5 @@ //! A module for searching for libraries -pub use self::FileMatch::*; - use std::env; use std::fs; use std::iter::FromIterator; @@ -45,21 +43,13 @@ impl<'a> FileSearch<'a> { pub fn search<F>(&self, mut pick: F) where - F: FnMut(&SearchPathFile, PathKind) -> FileMatch, + F: FnMut(&SearchPathFile, PathKind), { for search_path in self.search_paths() { debug!("searching {}", search_path.dir.display()); for spf in search_path.files.iter() { debug!("testing {}", spf.path.display()); - let maybe_picked = pick(spf, search_path.kind); - match maybe_picked { - FileMatches => { - debug!("picked {}", spf.path.display()); - } - FileDoesntMatch => { - debug!("rejected {}", spf.path.display()); - } - } + pick(spf, search_path.kind); } } } |
