@@ -129,7 +129,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
129129 let trait_def = self . lookup_trait_def ( trait_def_id) ;
130130 let trait_ref = trait_def. trait_ref . clone ( ) ;
131131 let trait_ref = trait_ref. to_poly_trait_ref ( ) ;
132- let predicates = self . lookup_super_predicates ( trait_def_id) ;
132+ let predicates = self . item_super_predicates ( trait_def_id) ;
133133 predicates
134134 . predicates
135135 . into_iter ( )
@@ -166,7 +166,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
166166 // Search for a predicate like `Self : Sized` amongst the trait bounds.
167167 let free_substs = self . construct_free_substs ( def_id,
168168 self . region_maps . node_extent ( ast:: DUMMY_NODE_ID ) ) ;
169- let predicates = self . lookup_predicates ( def_id) ;
169+ let predicates = self . item_predicates ( def_id) ;
170170 let predicates = predicates. instantiate ( self , free_substs) . predicates ;
171171 elaborate_predicates ( self , predicates)
172172 . any ( |predicate| {
@@ -238,7 +238,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
238238
239239 // The `Self` type is erased, so it should not appear in list of
240240 // arguments or return type apart from the receiver.
241- let ref sig = self . lookup_item_type ( method. def_id ) . ty . fn_sig ( ) ;
241+ let ref sig = self . item_type ( method. def_id ) . fn_sig ( ) ;
242242 for & input_ty in & sig. 0 . inputs [ 1 ..] {
243243 if self . contains_illegal_self_type_reference ( trait_def_id, input_ty) {
244244 return Some ( MethodViolationCode :: ReferencesSelf ) ;
@@ -249,7 +249,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
249249 }
250250
251251 // We can't monomorphize things like `fn foo<A>(...)`.
252- if !self . lookup_generics ( method. def_id ) . types . is_empty ( ) {
252+ if !self . item_generics ( method. def_id ) . types . is_empty ( ) {
253253 return Some ( MethodViolationCode :: Generic ) ;
254254 }
255255
0 commit comments