Split implied and super predicate queries
This commit is contained in:
parent
3dab259cb9
commit
25c342f30a
16 changed files with 125 additions and 96 deletions
|
@ -64,9 +64,9 @@ pub fn provide(providers: &mut Providers) {
|
|||
predicates_defined_on,
|
||||
explicit_predicates_of: predicates_of::explicit_predicates_of,
|
||||
super_predicates_of: predicates_of::super_predicates_of,
|
||||
super_predicates_that_define_assoc_type: |tcx, (def_id, assoc_name)| {
|
||||
predicates_of::super_predicates_that_define_assoc_type(tcx, (def_id, Some(assoc_name)))
|
||||
},
|
||||
implied_predicates_of: predicates_of::implied_predicates_of,
|
||||
super_predicates_that_define_assoc_type:
|
||||
predicates_of::super_predicates_that_define_assoc_type,
|
||||
trait_explicit_predicates_and_bounds: predicates_of::trait_explicit_predicates_and_bounds,
|
||||
type_param_predicates: predicates_of::type_param_predicates,
|
||||
trait_def,
|
||||
|
@ -597,6 +597,7 @@ fn convert_item(tcx: TyCtxt<'_>, item_id: hir::ItemId) {
|
|||
}
|
||||
hir::ItemKind::TraitAlias(..) => {
|
||||
tcx.ensure().generics_of(def_id);
|
||||
tcx.at(it.span).implied_predicates_of(def_id);
|
||||
tcx.at(it.span).super_predicates_of(def_id);
|
||||
tcx.ensure().predicates_of(def_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue