@@ -111,7 +111,7 @@ fn variance_of_opaque(tcx: TyCtxt<'_>, item_def_id: LocalDefId) -> &[ty::Varianc
111111 #[ instrument( level = "trace" , skip( self ) , ret) ]
112112 fn visit_ty ( & mut self , t : Ty < ' tcx > ) -> ControlFlow < Self :: BreakTy > {
113113 match t. kind ( ) {
114- ty:: Alias ( _, ty:: AliasTy { def_id, substs } )
114+ ty:: Alias ( _, ty:: AliasTy { def_id, substs, .. } )
115115 if matches ! (
116116 self . tcx. def_kind( * def_id) ,
117117 DefKind :: OpaqueTy | DefKind :: ImplTraitPlaceholder
@@ -160,7 +160,7 @@ fn variance_of_opaque(tcx: TyCtxt<'_>, item_def_id: LocalDefId) -> &[ty::Varianc
160160 // instead of requiring an additional `+ 'a`.
161161 match pred. kind ( ) . skip_binder ( ) {
162162 ty:: PredicateKind :: Clause ( ty:: Clause :: Trait ( ty:: TraitPredicate {
163- trait_ref : ty:: TraitRef { def_id : _, substs } ,
163+ trait_ref : ty:: TraitRef { def_id : _, substs, .. } ,
164164 constness : _,
165165 polarity : _,
166166 } ) ) => {
@@ -169,7 +169,7 @@ fn variance_of_opaque(tcx: TyCtxt<'_>, item_def_id: LocalDefId) -> &[ty::Varianc
169169 }
170170 }
171171 ty:: PredicateKind :: Clause ( ty:: Clause :: Projection ( ty:: ProjectionPredicate {
172- projection_ty : ty:: AliasTy { substs, def_id : _ } ,
172+ projection_ty : ty:: AliasTy { substs, .. } ,
173173 term,
174174 } ) ) => {
175175 for subst in & substs[ 1 ..] {
0 commit comments