Skip to content

Commit 16fcbd2

Browse files
committed
Auto merge of rust-lang#126068 - lqd:revert-124976, r=petrochenkov
Revert "use `tcx.used_crates(())` more" before it reaches beta There are more open issues caused by rust-lang#124976 than will be fixed by rust-lang#125493 alone. The beta cut is soon, so let's revert it and buy some time to analyze and fix these issues in our own time. fixes rust-lang#125474 fixes rust-lang#125484 fixes rust-lang#125646 fixes rust-lang#125707 fixes rust-lang#126066 fixes rust-lang#125934 fixes rust-lang#126021 r? `@petrochenkov` `@bors` p=1
2 parents ea13653 + c245cde commit 16fcbd2

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)