@@ -127,17 +127,18 @@ define_queries! { <'tcx>
127127 /// predicate gets in the way of some checks, which are intended
128128 /// to operate over only the actual where-clauses written by the
129129 /// user.)
130- [ ] fn predicates_of: PredicatesOfItem ( DefId ) -> ty:: GenericPredicates <' tcx>,
130+ [ ] fn predicates_of: PredicatesOfItem ( DefId ) -> Lrc < ty:: GenericPredicates <' tcx> >,
131131
132132 /// Maps from the def-id of an item (trait/struct/enum/fn) to the
133133 /// predicates (where clauses) directly defined on it. This is
134134 /// equal to the `explicit_predicates_of` predicates plus the
135135 /// `inferred_outlives_of` predicates.
136- [ ] fn predicates_defined_on: PredicatesDefinedOnItem ( DefId ) -> ty:: GenericPredicates <' tcx>,
136+ [ ] fn predicates_defined_on: PredicatesDefinedOnItem ( DefId )
137+ -> Lrc <ty:: GenericPredicates <' tcx>>,
137138
138139 /// Returns the predicates written explicit by the user.
139140 [ ] fn explicit_predicates_of: ExplicitPredicatesOfItem ( DefId )
140- -> ty:: GenericPredicates <' tcx>,
141+ -> Lrc < ty:: GenericPredicates <' tcx> >,
141142
142143 /// Returns the inferred outlives predicates (e.g., for `struct
143144 /// Foo<'a, T> { x: &'a T }`, this would return `T: 'a`).
@@ -149,12 +150,12 @@ define_queries! { <'tcx>
149150 /// evaluate them even during type conversion, often before the
150151 /// full predicates are available (note that supertraits have
151152 /// additional acyclicity requirements).
152- [ ] fn super_predicates_of: SuperPredicatesOfItem ( DefId ) -> ty:: GenericPredicates <' tcx>,
153+ [ ] fn super_predicates_of: SuperPredicatesOfItem ( DefId ) -> Lrc < ty:: GenericPredicates <' tcx> >,
153154
154155 /// To avoid cycles within the predicates of a single item we compute
155156 /// per-type-parameter predicates for resolving `T::AssocTy`.
156157 [ ] fn type_param_predicates: type_param_predicates( ( DefId , DefId ) )
157- -> ty:: GenericPredicates <' tcx>,
158+ -> Lrc < ty:: GenericPredicates <' tcx> >,
158159
159160 [ ] fn trait_def: TraitDefOfItem ( DefId ) -> & ' tcx ty:: TraitDef ,
160161 [ ] fn adt_def: AdtDefOfItem ( DefId ) -> & ' tcx ty:: AdtDef ,
0 commit comments