@@ -284,7 +284,7 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
284284 let ty = ty:: mk_rptr ( self . get_ref ( ) . infcx . tcx ,
285285 r_borrow,
286286 ty:: mt { ty : ty, mutbl : mt_b. mutbl } ) ;
287- try!( self . get_ref ( ) . infcx . try ( || sub. tys ( ty, b) ) ) ;
287+ try!( self . get_ref ( ) . infcx . try ( |_ | sub. tys ( ty, b) ) ) ;
288288 debug ! ( "Success, coerced with AutoDerefRef(1, \
289289 AutoPtr(AutoUnsize({})))", kind) ;
290290 Ok ( Some ( AdjustDerefRef ( AutoDerefRef {
@@ -307,7 +307,7 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
307307
308308 let ty = ty:: mk_ptr ( self . get_ref ( ) . infcx . tcx ,
309309 ty:: mt { ty : ty, mutbl : mt_b. mutbl } ) ;
310- try!( self . get_ref ( ) . infcx . try ( || sub. tys ( ty, b) ) ) ;
310+ try!( self . get_ref ( ) . infcx . try ( |_ | sub. tys ( ty, b) ) ) ;
311311 debug ! ( "Success, coerced with AutoDerefRef(1, \
312312 AutoPtr(AutoUnsize({})))", kind) ;
313313 Ok ( Some ( AdjustDerefRef ( AutoDerefRef {
@@ -325,7 +325,7 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
325325 match self . unsize_ty ( t_a, sty_a, t_b) {
326326 Some ( ( ty, kind) ) => {
327327 let ty = ty:: mk_uniq ( self . get_ref ( ) . infcx . tcx , ty) ;
328- try!( self . get_ref ( ) . infcx . try ( || sub. tys ( ty, b) ) ) ;
328+ try!( self . get_ref ( ) . infcx . try ( |_ | sub. tys ( ty, b) ) ) ;
329329 debug ! ( "Success, coerced with AutoDerefRef(1, \
330330 AutoUnsizeUniq({}))", kind) ;
331331 Ok ( Some ( AdjustDerefRef ( AutoDerefRef {
@@ -382,7 +382,7 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
382382 let mut result = None ;
383383 let mut tps = ty_substs_a. iter ( ) . zip ( ty_substs_b. iter ( ) ) . enumerate ( ) ;
384384 for ( i, ( tp_a, tp_b) ) in tps {
385- if self . get_ref ( ) . infcx . try ( || sub. tys ( * tp_a, * tp_b) ) . is_ok ( ) {
385+ if self . get_ref ( ) . infcx . try ( |_ | sub. tys ( * tp_a, * tp_b) ) . is_ok ( ) {
386386 continue ;
387387 }
388388 match
@@ -395,7 +395,7 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
395395 let mut new_substs = substs_a. clone ( ) ;
396396 new_substs. types . get_mut_slice ( subst:: TypeSpace ) [ i] = new_tp;
397397 let ty = ty:: mk_struct ( tcx, did_a, new_substs) ;
398- if self . get_ref ( ) . infcx . try ( || sub. tys ( ty, ty_b) ) . is_err ( ) {
398+ if self . get_ref ( ) . infcx . try ( |_ | sub. tys ( ty, ty_b) ) . is_err ( ) {
399399 debug ! ( "Unsized type parameter '{}', but still \
400400 could not match types {} and {}",
401401 ppaux:: ty_to_string( tcx, * tp_a) ,
0 commit comments