about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-06 20:18:43 +0000
committerbors <bors@rust-lang.org>2024-06-06 20:18:43 +0000
commit16fcbd21e5a7a08deb7a8181de9894c5d620ac64 (patch)
tree9c46c3972efcfcb0a7f9b81898f36e07e73e7693
parentea13653f6f583f2d1fb196af05f5dc5995237f39 (diff)
parentc245cde61cbe914dcf5c46a072a2b3cd0c694f0b (diff)
downloadrust-16fcbd21e5a7a08deb7a8181de9894c5d620ac64.tar.gz
rust-16fcbd21e5a7a08deb7a8181de9894c5d620ac64.zip
Auto merge of #126068 - lqd:revert-124976, r=petrochenkov
Revert "use `tcx.used_crates(())` more" before it reaches beta

There are more open issues caused by #124976 than will be fixed by #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 https://github.com/rust-lang/rust/issues/125474
fixes https://github.com/rust-lang/rust/issues/125484
fixes https://github.com/rust-lang/rust/issues/125646
fixes https://github.com/rust-lang/rust/issues/125707
fixes #126066
fixes #125934
fixes https://github.com/rust-lang/rust/issues/126021

r? `@petrochenkov`
`@bors` p=1
-rw-r--r--clippy_utils/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs
index 1147dce6215..2f6bf920967 100644
--- a/clippy_utils/src/lib.rs
+++ b/clippy_utils/src/lib.rs
@@ -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)