@@ -10,12 +10,12 @@ use rustc_trait_selection::traits;
1010use smallvec:: SmallVec ;
1111
1212use crate :: astconv:: {
13- AstConv , ConvertedBinding , ConvertedBindingKind , OnlySelfBounds , PredicateFilter ,
13+ ConvertedBinding , ConvertedBindingKind , HirLowerer , OnlySelfBounds , PredicateFilter ,
1414} ;
1515use crate :: bounds:: Bounds ;
1616use crate :: errors;
1717
18- impl < ' tcx > dyn AstConv < ' tcx > + ' _ {
18+ impl < ' tcx > dyn HirLowerer < ' tcx > + ' _ {
1919 /// Sets `implicitly_sized` to true on `Bounds` if necessary
2020 pub ( crate ) fn add_implicitly_sized (
2121 & self ,
@@ -156,7 +156,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
156156 ) ;
157157 }
158158 hir:: GenericBound :: Outlives ( lifetime) => {
159- let region = self . ast_region_to_region ( lifetime, None ) ;
159+ let region = self . lower_region ( lifetime, None ) ;
160160 bounds. push_region_bound (
161161 self . tcx ( ) ,
162162 ty:: Binder :: bind_with_vars (
@@ -234,7 +234,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
234234 /// `trait_ref` here will be `for<'a> T: Iterator`. The `binding` data however is from *inside*
235235 /// the binder (e.g., `&'a u32`) and hence may reference bound regions.
236236 #[ instrument( level = "debug" , skip( self , bounds, speculative, dup_bindings, path_span) ) ]
237- pub ( super ) fn add_predicates_for_ast_type_binding (
237+ pub ( super ) fn lower_type_bindings_to_predicates (
238238 & self ,
239239 hir_ref_id : hir:: HirId ,
240240 trait_ref : ty:: PolyTraitRef < ' tcx > ,
@@ -274,7 +274,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
274274 ty:: AssocKind :: Type
275275 } ;
276276
277- let candidate = if self . trait_defines_associated_item_named (
277+ let candidate = if self . trait_defines_assoc_item_named (
278278 trait_ref. def_id ( ) ,
279279 assoc_kind,
280280 binding. item_name ,
@@ -420,7 +420,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
420420 infer_args : false ,
421421 } ;
422422
423- let args_trait_ref_and_assoc_item = self . create_args_for_associated_item (
423+ let args_trait_ref_and_assoc_item = self . lower_args_for_assoc_item (
424424 path_span,
425425 assoc_item. def_id ,
426426 & item_segment,
0 commit comments