1
Fork 0

Merge impl_trait_in_assoc_types_defined_by query back into opaque_types_defined_by

Instead, when we're collecting opaques for associated items, we choose the right collection mode depending on whether we're collecting for an associated item of a trait impl or not.
This commit is contained in:
Oli Scherer 2024-03-04 19:23:30 +00:00
parent c7beecf3e3
commit da357346e8
7 changed files with 35 additions and 53 deletions

View file

@ -344,15 +344,6 @@ rustc_queries! {
}
}
query impl_trait_in_assoc_types_defined_by(
key: LocalDefId
) -> &'tcx ty::List<LocalDefId> {
desc {
|tcx| "computing the opaque types defined by `{}`",
tcx.def_path_str(key.to_def_id())
}
}
/// Returns the list of bounds that can be used for
/// `SelectionCandidate::ProjectionCandidate(_)` and
/// `ProjectionTyCandidate::TraitDef`.