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 @@ -430,12 +430,12 @@ fn compare_method_predicate_entailment<'tcx>(
430
430
Ok ( ( ) )
431
431
}
432
432
433
- struct RemapLateParam < ' a , ' tcx > {
433
+ struct RemapLateParam < ' tcx > {
434
434
tcx : TyCtxt < ' tcx > ,
435
- mapping : & ' a FxIndexMap < ty:: LateParamRegionKind , ty:: LateParamRegionKind > ,
435
+ mapping : FxIndexMap < ty:: LateParamRegionKind , ty:: LateParamRegionKind > ,
436
436
}
437
437
438
- impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateParam < ' _ , ' tcx > {
438
+ impl < ' tcx > TypeFolder < TyCtxt < ' tcx > > for RemapLateParam < ' tcx > {
439
439
fn cx ( & self ) -> TyCtxt < ' tcx > {
440
440
self . tcx
441
441
}
Original file line number Diff line number Diff line change @@ -305,8 +305,7 @@ fn report_mismatched_rpitit_signature<'tcx>(
305
305
} )
306
306
. collect ( ) ;
307
307
308
- let mut return_ty =
309
- trait_m_sig. output ( ) . fold_with ( & mut super :: RemapLateParam { tcx, mapping : & mapping } ) ;
308
+ let mut return_ty = trait_m_sig. output ( ) . fold_with ( & mut super :: RemapLateParam { tcx, mapping } ) ;
310
309
311
310
if tcx. asyncness ( impl_m_def_id) . is_async ( ) && tcx. asyncness ( trait_m_def_id) . is_async ( ) {
312
311
let ty:: Alias ( ty:: Projection , future_ty) = return_ty. kind ( ) else {
You can’t perform that action at this time.
0 commit comments