about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-06-06 09:45:50 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-06-06 10:06:28 +0000
commitc245cde61cbe914dcf5c46a072a2b3cd0c694f0b (patch)
treef207eb7a5a422e4b2986819b85fa274cddd00471
parent38de6e1f3a48fc7a18448a3117f2db72c5fb356e (diff)
downloadrust-c245cde61cbe914dcf5c46a072a2b3cd0c694f0b.tar.gz
rust-c245cde61cbe914dcf5c46a072a2b3cd0c694f0b.zip
Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk"
This reverts commit eda4a35f365535af72118118a3597edf5a13c12d, reversing
changes made to eb6b35b5bcb3c2a594cb29cd478aeb2893f49d30.
-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)