From 32b968ce443a840b51e605e8a29408aa903aa6bf Mon Sep 17 00:00:00 2001 From: toidiu Date: Tue, 26 Sep 2017 00:48:32 -0400 Subject: [PATCH] add inferred_outlives_of query --- src/librustc/ty/maps/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc/ty/maps/mod.rs b/src/librustc/ty/maps/mod.rs index 58405c261ad..e14a77ea93b 100644 --- a/src/librustc/ty/maps/mod.rs +++ b/src/librustc/ty/maps/mod.rs @@ -121,6 +121,9 @@ define_maps! { <'tcx> /// (inferred) variance. [] fn variances_of: ItemVariances(DefId) -> Rc>, + /// Maps from def-id of a type to its (inferred) outlives. + [] fn inferred_outlives_of: PredicatesOfItem(DefId) -> ty::GenericPredicates<'tcx>, + /// Maps from an impl/trait def-id to a list of the def-ids of its items [] fn associated_item_def_ids: AssociatedItemDefIds(DefId) -> Rc>,