Skip to content

Commit c245cde

Browse files
committed
Revert "Rollup merge of rust-lang#124976 - petrochenkov:usedcrates, r=oli-obk"
This reverts commit eda4a35, reversing changes made to eb6b35b.
1 parent 38de6e1 commit c245cde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ fn item_children_by_name(tcx: TyCtxt<'_>, def_id: DefId, name: Symbol) -> Vec<Re
647647
/// This function is expensive and should be used sparingly.
648648
pub fn def_path_res(cx: &LateContext<'_>, path: &[&str]) -> Vec<Res> {
649649
fn find_crates(tcx: TyCtxt<'_>, name: Symbol) -> impl Iterator<Item = DefId> + '_ {
650-
tcx.crates_including_speculative(())
650+
tcx.crates(())
651651
.iter()
652652
.copied()
653653
.filter(move |&num| tcx.crate_name(num) == name)

0 commit comments

Comments
 (0)