diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-06-06 09:45:50 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-06-06 10:06:28 +0000 |
| commit | c245cde61cbe914dcf5c46a072a2b3cd0c694f0b (patch) | |
| tree | f207eb7a5a422e4b2986819b85fa274cddd00471 | |
| parent | 38de6e1f3a48fc7a18448a3117f2db72c5fb356e (diff) | |
| download | rust-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.rs | 2 |
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) |
