1
Fork 0

super_traits_of is now a query

This commit is contained in:
Santiago Pastorino 2020-11-21 18:13:04 -03:00
parent 6631215e54
commit b60a214c51
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 16 additions and 10 deletions

View file

@ -433,7 +433,13 @@ rustc_queries! {
/// full predicates are available (note that supertraits have
/// additional acyclicity requirements).
query super_predicates_of(key: DefId) -> ty::GenericPredicates<'tcx> {
desc { |tcx| "computing the supertraits of `{}`", tcx.def_path_str(key) }
desc { |tcx| "computing the super predicates of `{}`", tcx.def_path_str(key) }
}
/// Maps from the `DefId` of a trait to the list of
/// all the ancestors super traits.
query super_traits_of(key: DefId) -> FxHashSet<DefId> {
desc { |tcx| "computing the super traits of `{}`", tcx.def_path_str(key) }
}
/// Maps from the `DefId` of a trait to the list of