Skip to content

Commit

Permalink
Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk"
Browse files Browse the repository at this point in the history
This reverts commit eda4a35, reversing
changes made to eb6b35b.
  • Loading branch information
lqd committed Jun 6, 2024
1 parent c6ffe25 commit e27da90
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 e27da90

Please sign in to comment.