@@ -56,7 +56,7 @@ use crate::hir::Node;
56
56
use crate :: middle:: region;
57
57
use crate :: traits:: { ObligationCause , ObligationCauseCode } ;
58
58
use 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 } ;
60
60
use errors:: { Applicability , DiagnosticBuilder , DiagnosticStyledString } ;
61
61
use std:: { cmp, fmt} ;
62
62
use syntax_pos:: { Pos , Span } ;
@@ -570,7 +570,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
570
570
value : & mut DiagnosticStyledString ,
571
571
other_value : & mut DiagnosticStyledString ,
572
572
name : String ,
573
- sub : & ty:: subst:: Substs < ' tcx > ,
573
+ sub : ty:: subst:: SubstsRef < ' tcx > ,
574
574
pos : usize ,
575
575
other_ty : & Ty < ' tcx > ,
576
576
) {
@@ -648,7 +648,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
648
648
mut t1_out : & mut DiagnosticStyledString ,
649
649
mut t2_out : & mut DiagnosticStyledString ,
650
650
path : String ,
651
- sub : & ty:: subst:: Substs < ' tcx > ,
651
+ sub : ty:: subst:: SubstsRef < ' tcx > ,
652
652
other_path : String ,
653
653
other_ty : & Ty < ' tcx > ,
654
654
) -> Option < ( ) > {
@@ -687,8 +687,8 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
687
687
fn strip_generic_default_params (
688
688
& self ,
689
689
def_id : DefId ,
690
- substs : & ty:: subst:: Substs < ' tcx > ,
691
- ) -> & ' tcx ty :: subst :: Substs < ' tcx > {
690
+ substs : ty:: subst:: SubstsRef < ' tcx > ,
691
+ ) -> SubstsRef < ' tcx > {
692
692
let generics = self . tcx . generics_of ( def_id) ;
693
693
let mut num_supplied_defaults = 0 ;
694
694
let mut type_params = generics
0 commit comments