1
Fork 0

add query opaque_types_defined_by

This commit is contained in:
lcnr 2023-04-18 16:09:48 +02:00 committed by Oli Scherer
parent e2daccc4ac
commit 6ae803eedf
3 changed files with 91 additions and 0 deletions

View file

@ -236,6 +236,15 @@ rustc_queries! {
cache_on_disk_if { key.is_local() }
}
query opaque_types_defined_by(
key: LocalDefId
) -> &'tcx [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`.