Skip to content

Commit 0238bcc

Browse files
committed
Avoid a useless FxHashSet::insert in FileSearch::for_each_lib_search_path.
1 parent 8375ab4 commit 0238bcc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc/session/filesearch.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ impl<'a> FileSearch<'a> {
5353
if !visited_dirs.contains(&tlib_path) {
5454
f(&tlib_path, PathKind::All);
5555
}
56-
57-
visited_dirs.insert(tlib_path);
5856
}
5957

6058
pub fn get_lib_path(&self) -> PathBuf {

0 commit comments

Comments
 (0)