@@ -56,7 +56,7 @@ use crate::hir::Node;
5656use crate :: middle:: region;
5757use crate :: traits:: { ObligationCause , ObligationCauseCode } ;
5858use crate :: ty:: error:: TypeError ;
59- use crate :: ty:: { self , subst:: Subst , Region , Ty , TyCtxt , TyKind , TypeFoldable } ;
59+ use crate :: ty:: { self , subst:: { Subst , SubstsRef } , Region , Ty , TyCtxt , TyKind , TypeFoldable } ;
6060use errors:: { Applicability , DiagnosticBuilder , DiagnosticStyledString } ;
6161use std:: { cmp, fmt} ;
6262use syntax_pos:: { Pos , Span } ;
@@ -570,7 +570,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
570570 value : & mut DiagnosticStyledString ,
571571 other_value : & mut DiagnosticStyledString ,
572572 name : String ,
573- sub : & ty:: subst:: Substs < ' tcx > ,
573+ sub : ty:: subst:: SubstsRef < ' tcx > ,
574574 pos : usize ,
575575 other_ty : & Ty < ' tcx > ,
576576 ) {
@@ -648,7 +648,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
648648 mut t1_out : & mut DiagnosticStyledString ,
649649 mut t2_out : & mut DiagnosticStyledString ,
650650 path : String ,
651- sub : & ty:: subst:: Substs < ' tcx > ,
651+ sub : ty:: subst:: SubstsRef < ' tcx > ,
652652 other_path : String ,
653653 other_ty : & Ty < ' tcx > ,
654654 ) -> Option < ( ) > {
@@ -687,8 +687,8 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
687687 fn strip_generic_default_params (
688688 & self ,
689689 def_id : DefId ,
690- substs : & ty:: subst:: Substs < ' tcx > ,
691- ) -> & ' tcx ty :: subst :: Substs < ' tcx > {
690+ substs : ty:: subst:: SubstsRef < ' tcx > ,
691+ ) -> SubstsRef < ' tcx > {
692692 let generics = self . tcx . generics_of ( def_id) ;
693693 let mut num_supplied_defaults = 0 ;
694694 let mut type_params = generics
0 commit comments