Skip to content

Commit

Permalink
Revert "Rollup merge of rust-lang#124976 - petrochenkov:usedcrates, r…
Browse files Browse the repository at this point in the history
…=oli-obk"

This reverts commit eda4a35, reversing
changes made to eb6b35b.
  • Loading branch information
lqd committed Jun 6, 2024
1 parent 38de6e1 commit c245cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ fn item_children_by_name(tcx: TyCtxt<'_>, def_id: DefId, name: Symbol) -> Vec<Re
/// This function is expensive and should be used sparingly.
pub fn def_path_res(cx: &LateContext<'_>, path: &[&str]) -> Vec<Res> {
fn find_crates(tcx: TyCtxt<'_>, name: Symbol) -> impl Iterator<Item = DefId> + '_ {
tcx.crates_including_speculative(())
tcx.crates(())
.iter()
.copied()
.filter(move |&num| tcx.crate_name(num) == name)
Expand Down

0 comments on commit c245cde

Please sign in to comment.