Skip to content

Commit

Permalink
Avoid a useless FxHashSet::insert in `FileSearch::for_each_lib_sear…
Browse files Browse the repository at this point in the history
…ch_path`.
  • Loading branch information
nnethercote committed Dec 11, 2018
1 parent 8375ab4 commit 0238bcc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustc/session/filesearch.rs
Expand Up @@ -53,8 +53,6 @@ impl<'a> FileSearch<'a> {
if !visited_dirs.contains(&tlib_path) {
f(&tlib_path, PathKind::All);
}

visited_dirs.insert(tlib_path);
}

pub fn get_lib_path(&self) -> PathBuf {
Expand Down

0 comments on commit 0238bcc

Please sign in to comment.