@@ -693,7 +693,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
693693 debug ! ( ?bound_vars) ;
694694
695695 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) ,
697697 bound_vars,
698698 ) ;
699699
@@ -759,7 +759,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
759759 Some ( ( trait_def_id, trait_segment, span) ) ,
760760 ) ;
761761 }
762- ty:: TraitRef :: new ( self . tcx ( ) , trait_def_id, generic_args)
762+ ty:: TraitRef :: new_from_args ( self . tcx ( ) , trait_def_id, generic_args)
763763 }
764764
765765 fn probe_trait_that_defines_assoc_item (
@@ -789,7 +789,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
789789 // Type aliases defined in crates that have the
790790 // feature `lazy_type_alias` enabled get encoded as a type alias that normalization will
791791 // 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) ;
793793 Ty :: new_alias ( tcx, ty:: Weak , alias_ty)
794794 } else {
795795 tcx. at ( span) . type_of ( did) . instantiate ( tcx, args)
@@ -1267,7 +1267,8 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
12671267 . chain ( args. into_iter ( ) . skip ( parent_args. len ( ) ) ) ,
12681268 ) ;
12691269
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) ) ;
12711272
12721273 Ok ( Some ( ( ty, assoc_item) ) )
12731274 }
@@ -1534,7 +1535,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
15341535 let item_args =
15351536 self . lower_generic_args_of_assoc_item ( span, item_def_id, item_segment, trait_ref. args ) ;
15361537
1537- Ty :: new_projection ( tcx, item_def_id, item_args)
1538+ Ty :: new_projection_from_args ( tcx, item_def_id, item_args)
15381539 }
15391540
15401541 pub fn prohibit_generic_args < ' a > (
@@ -2302,7 +2303,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
23022303 debug ! ( ?args) ;
23032304
23042305 if in_trait {
2305- Ty :: new_projection ( tcx, def_id, args)
2306+ Ty :: new_projection_from_args ( tcx, def_id, args)
23062307 } else {
23072308 Ty :: new_opaque ( tcx, def_id, args)
23082309 }
0 commit comments