@@ -693,7 +693,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
693
693
debug ! ( ?bound_vars) ;
694
694
695
695
let poly_trait_ref = ty:: Binder :: bind_with_vars (
696
- ty:: TraitRef :: new ( tcx, trait_def_id, generic_args) ,
696
+ ty:: TraitRef :: new_from_args ( tcx, trait_def_id, generic_args) ,
697
697
bound_vars,
698
698
) ;
699
699
@@ -759,7 +759,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
759
759
Some ( ( trait_def_id, trait_segment, span) ) ,
760
760
) ;
761
761
}
762
- ty:: TraitRef :: new ( self . tcx ( ) , trait_def_id, generic_args)
762
+ ty:: TraitRef :: new_from_args ( self . tcx ( ) , trait_def_id, generic_args)
763
763
}
764
764
765
765
fn probe_trait_that_defines_assoc_item (
@@ -789,7 +789,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
789
789
// Type aliases defined in crates that have the
790
790
// feature `lazy_type_alias` enabled get encoded as a type alias that normalization will
791
791
// then actually instantiate the where bounds of.
792
- let alias_ty = ty:: AliasTy :: new ( tcx, did, args) ;
792
+ let alias_ty = ty:: AliasTy :: new_from_args ( tcx, did, args) ;
793
793
Ty :: new_alias ( tcx, ty:: Weak , alias_ty)
794
794
} else {
795
795
tcx. at ( span) . type_of ( did) . instantiate ( tcx, args)
@@ -1267,7 +1267,8 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
1267
1267
. chain ( args. into_iter ( ) . skip ( parent_args. len ( ) ) ) ,
1268
1268
) ;
1269
1269
1270
- let ty = Ty :: new_alias ( tcx, ty:: Inherent , ty:: AliasTy :: new ( tcx, assoc_item, args) ) ;
1270
+ let ty =
1271
+ Ty :: new_alias ( tcx, ty:: Inherent , ty:: AliasTy :: new_from_args ( tcx, assoc_item, args) ) ;
1271
1272
1272
1273
Ok ( Some ( ( ty, assoc_item) ) )
1273
1274
}
@@ -1534,7 +1535,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
1534
1535
let item_args =
1535
1536
self . lower_generic_args_of_assoc_item ( span, item_def_id, item_segment, trait_ref. args ) ;
1536
1537
1537
- Ty :: new_projection ( tcx, item_def_id, item_args)
1538
+ Ty :: new_projection_from_args ( tcx, item_def_id, item_args)
1538
1539
}
1539
1540
1540
1541
pub fn prohibit_generic_args < ' a > (
@@ -2302,7 +2303,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
2302
2303
debug ! ( ?args) ;
2303
2304
2304
2305
if in_trait {
2305
- Ty :: new_projection ( tcx, def_id, args)
2306
+ Ty :: new_projection_from_args ( tcx, def_id, args)
2306
2307
} else {
2307
2308
Ty :: new_opaque ( tcx, def_id, args)
2308
2309
}
0 commit comments