File tree 2 files changed +4
-5
lines changed
compiler/rustc_hir_analysis/src/check
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -424,12 +424,12 @@ fn compare_method_predicate_entailment<'tcx>(
424
424
Ok ( ( ) )
425
425
}
426
426
427
- struct RemapLateParam < ' a , ' tcx > {
427
+ struct RemapLateParam < ' tcx > {
428
428
tcx : TyCtxt < ' tcx > ,
429
- mapping : & ' a FxIndexMap < ty:: LateParamRegionKind , ty:: LateParamRegionKind > ,
429
+ mapping : FxIndexMap < ty:: LateParamRegionKind , ty:: LateParamRegionKind > ,
430
430
}
431
431
432
- impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateParam < ' _ , ' tcx > {
432
+ impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateParam < ' tcx > {
433
433
fn cx ( & self ) -> TyCtxt < ' tcx > {
434
434
self . tcx
435
435
}
Original file line number Diff line number Diff line change @@ -299,8 +299,7 @@ fn report_mismatched_rpitit_signature<'tcx>(
299
299
} )
300
300
. collect ( ) ;
301
301
302
- let mut return_ty =
303
- trait_m_sig. output ( ) . fold_with ( & mut super :: RemapLateParam { tcx, mapping : & mapping } ) ;
302
+ let mut return_ty = trait_m_sig. output ( ) . fold_with ( & mut super :: RemapLateParam { tcx, mapping } ) ;
304
303
305
304
if tcx. asyncness ( impl_m_def_id) . is_async ( ) && tcx. asyncness ( trait_m_def_id) . is_async ( ) {
306
305
let ty:: Alias ( ty:: Projection , future_ty) = return_ty. kind ( ) else {
You can’t perform that action at this time.
0 commit comments