@@ -472,7 +472,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
472
472
}
473
473
474
474
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) ;
476
476
self . register_wf_obligation ( t. into ( ) , ast_t. span , traits:: MiscObligation ) ;
477
477
t
478
478
}
@@ -854,7 +854,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
854
854
// out unconstrained or ambiguous, as we're
855
855
// just trying to get hints here.
856
856
self . save_and_restore_in_snapshot_flag ( |_| {
857
- let mut fulfill = TraitEngine :: new ( self . tcx ) ;
857
+ let mut fulfill = < dyn TraitEngine < ' _ > > :: new ( self . tcx ) ;
858
858
for obligation in ok. obligations {
859
859
fulfill. register_predicate_obligation ( self , obligation) ;
860
860
}
@@ -1174,9 +1174,9 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1174
1174
1175
1175
let path_segs = match res {
1176
1176
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
+ ) ,
1180
1180
_ => bug ! ( "instantiate_value_path on {:?}" , res) ,
1181
1181
} ;
1182
1182
@@ -1219,7 +1219,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1219
1219
// errors if type parameters are provided in an inappropriate place.
1220
1220
1221
1221
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 (
1223
1223
self ,
1224
1224
segments. iter ( ) . enumerate ( ) . filter_map ( |( index, seg) | {
1225
1225
if !generic_segs. contains ( & index) || is_alias_variant_ctor {
@@ -1262,7 +1262,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1262
1262
if let GenericArgCountResult {
1263
1263
correct : Err ( GenericArgCountMismatch { reported : Some ( _) , .. } ) ,
1264
1264
..
1265
- } = AstConv :: check_generic_arg_count_for_call (
1265
+ } = < dyn AstConv < ' _ > > :: check_generic_arg_count_for_call (
1266
1266
tcx,
1267
1267
span,
1268
1268
def_id,
@@ -1370,7 +1370,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1370
1370
) -> subst:: GenericArg < ' tcx > {
1371
1371
match ( & param. kind , arg) {
1372
1372
( 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 ( )
1374
1374
}
1375
1375
( GenericParamDefKind :: Type { .. } , GenericArg :: Type ( ty) ) => {
1376
1376
self . fcx . to_ty ( ty) . into ( )
@@ -1423,7 +1423,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1423
1423
}
1424
1424
1425
1425
let substs = self_ctor_substs. unwrap_or_else ( || {
1426
- AstConv :: create_substs_for_generic_args (
1426
+ < dyn AstConv < ' _ > > :: create_substs_for_generic_args (
1427
1427
tcx,
1428
1428
def_id,
1429
1429
& [ ] [ ..] ,
0 commit comments