Revert "Rollup merge of #124976 - petrochenkov:usedcrates, r=oli-obk"
This reverts commiteda4a35f36
, reversing changes made toeb6b35b5bc
.
This commit is contained in:
parent
38de6e1f3a
commit
c245cde61c
@ -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.
|
/// This function is expensive and should be used sparingly.
|
||||||
pub fn def_path_res(cx: &LateContext<'_>, path: &[&str]) -> Vec<Res> {
|
pub fn def_path_res(cx: &LateContext<'_>, path: &[&str]) -> Vec<Res> {
|
||||||
fn find_crates(tcx: TyCtxt<'_>, name: Symbol) -> impl Iterator<Item = DefId> + '_ {
|
fn find_crates(tcx: TyCtxt<'_>, name: Symbol) -> impl Iterator<Item = DefId> + '_ {
|
||||||
tcx.crates_including_speculative(())
|
tcx.crates(())
|
||||||
.iter()
|
.iter()
|
||||||
.copied()
|
.copied()
|
||||||
.filter(move |&num| tcx.crate_name(num) == name)
|
.filter(move |&num| tcx.crate_name(num) == name)
|
||||||
|
Loading…
Reference in New Issue
Block a user