@@ -472,7 +472,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
472472 }
473473
474474 pub fn to_ty ( & self , ast_t : & hir:: Ty < ' _ > ) -> Ty < ' tcx > {
475- let t = AstConv :: ast_ty_to_ty ( self , ast_t) ;
475+ let t = < dyn AstConv < ' _ > > :: ast_ty_to_ty ( self , ast_t) ;
476476 self . register_wf_obligation ( t. into ( ) , ast_t. span , traits:: MiscObligation ) ;
477477 t
478478 }
@@ -854,7 +854,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
854854 // out unconstrained or ambiguous, as we're
855855 // just trying to get hints here.
856856 self . save_and_restore_in_snapshot_flag ( |_| {
857- let mut fulfill = TraitEngine :: new ( self . tcx ) ;
857+ let mut fulfill = < dyn TraitEngine < ' _ > > :: new ( self . tcx ) ;
858858 for obligation in ok. obligations {
859859 fulfill. register_predicate_obligation ( self , obligation) ;
860860 }
@@ -1174,9 +1174,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
11741174
11751175 let path_segs = match res {
11761176 Res :: Local ( _) | Res :: SelfCtor ( _) => vec ! [ ] ,
1177- Res :: Def ( kind, def_id) => {
1178- AstConv :: def_ids_for_value_path_segments ( self , segments, self_ty, kind, def_id)
1179- }
1177+ Res :: Def ( kind, def_id) => < dyn AstConv < ' _ > > :: def_ids_for_value_path_segments (
1178+ self , segments, self_ty, kind, def_id,
1179+ ) ,
11801180 _ => bug ! ( "instantiate_value_path on {:?}" , res) ,
11811181 } ;
11821182
@@ -1219,7 +1219,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12191219 // errors if type parameters are provided in an inappropriate place.
12201220
12211221 let generic_segs: FxHashSet < _ > = path_segs. iter ( ) . map ( |PathSeg ( _, index) | index) . collect ( ) ;
1222- let generics_has_err = AstConv :: prohibit_generics (
1222+ let generics_has_err = < dyn AstConv < ' _ > > :: prohibit_generics (
12231223 self ,
12241224 segments. iter ( ) . enumerate ( ) . filter_map ( |( index, seg) | {
12251225 if !generic_segs. contains ( & index) || is_alias_variant_ctor {
@@ -1262,7 +1262,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12621262 if let GenericArgCountResult {
12631263 correct : Err ( GenericArgCountMismatch { reported : Some ( _) , .. } ) ,
12641264 ..
1265- } = AstConv :: check_generic_arg_count_for_call (
1265+ } = < dyn AstConv < ' _ > > :: check_generic_arg_count_for_call (
12661266 tcx,
12671267 span,
12681268 def_id,
@@ -1370,7 +1370,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13701370 ) -> subst:: GenericArg < ' tcx > {
13711371 match ( & param. kind , arg) {
13721372 ( GenericParamDefKind :: Lifetime , GenericArg :: Lifetime ( lt) ) => {
1373- AstConv :: ast_region_to_region ( self . fcx , lt, Some ( param) ) . into ( )
1373+ < dyn AstConv < ' _ > > :: ast_region_to_region ( self . fcx , lt, Some ( param) ) . into ( )
13741374 }
13751375 ( GenericParamDefKind :: Type { .. } , GenericArg :: Type ( ty) ) => {
13761376 self . fcx . to_ty ( ty) . into ( )
@@ -1423,7 +1423,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
14231423 }
14241424
14251425 let substs = self_ctor_substs. unwrap_or_else ( || {
1426- AstConv :: create_substs_for_generic_args (
1426+ < dyn AstConv < ' _ > > :: create_substs_for_generic_args (
14271427 tcx,
14281428 def_id,
14291429 & [ ] [ ..] ,
0 commit comments