@@ -82,8 +82,8 @@ pub fn suggest_new_overflow_limit<'tcx, G: EmissionGuarantee>(
82
82
) ) ;
83
83
}
84
84
85
- #[ extension( pub trait TypeErrCtxtExt <' tcx>) ]
86
- impl < ' tcx > TypeErrCtxt < ' _ , ' tcx > {
85
+ #[ extension( pub trait TypeErrCtxtExt <' a , ' tcx>) ]
86
+ impl < ' a , ' tcx > TypeErrCtxt < ' a , ' tcx > {
87
87
fn report_fulfillment_errors (
88
88
& self ,
89
89
mut errors : Vec < FulfillmentError < ' tcx > > ,
@@ -228,7 +228,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
228
228
cause : OverflowCause < ' tcx > ,
229
229
span : Span ,
230
230
suggest_increasing_limit : bool ,
231
- ) -> Diag < ' tcx > {
231
+ ) -> Diag < ' a > {
232
232
fn with_short_path < ' tcx , T > ( tcx : TyCtxt < ' tcx > , value : T ) -> String
233
233
where
234
234
T : fmt:: Display + Print < ' tcx , FmtPrinter < ' tcx , ' tcx > > ,
@@ -1351,7 +1351,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1351
1351
& self ,
1352
1352
ty : Ty < ' tcx > ,
1353
1353
obligation : & PredicateObligation < ' tcx > ,
1354
- ) -> Diag < ' tcx > {
1354
+ ) -> Diag < ' a > {
1355
1355
let span = obligation. cause . span ;
1356
1356
1357
1357
let mut diag = match ty. kind ( ) {
@@ -1445,8 +1445,8 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
1445
1445
}
1446
1446
}
1447
1447
1448
- #[ extension( pub ( super ) trait InferCtxtPrivExt <' tcx>) ]
1449
- impl < ' tcx > TypeErrCtxt < ' _ , ' tcx > {
1448
+ #[ extension( pub ( super ) trait InferCtxtPrivExt <' a , ' tcx>) ]
1449
+ impl < ' a , ' tcx > TypeErrCtxt < ' a , ' tcx > {
1450
1450
fn can_match_trait (
1451
1451
& self ,
1452
1452
goal : ty:: TraitPredicate < ' tcx > ,
@@ -3379,7 +3379,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
3379
3379
found_kind : ty:: ClosureKind ,
3380
3380
kind : ty:: ClosureKind ,
3381
3381
trait_prefix : & ' static str ,
3382
- ) -> Diag < ' tcx > {
3382
+ ) -> Diag < ' a > {
3383
3383
let closure_span = self . tcx . def_span ( closure_def_id) ;
3384
3384
3385
3385
let mut err = ClosureKindMismatch {
@@ -3473,7 +3473,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
3473
3473
span : Span ,
3474
3474
found_trait_ref : ty:: TraitRef < ' tcx > ,
3475
3475
expected_trait_ref : ty:: TraitRef < ' tcx > ,
3476
- ) -> Result < Diag < ' tcx > , ErrorGuaranteed > {
3476
+ ) -> Result < Diag < ' a > , ErrorGuaranteed > {
3477
3477
let found_trait_ref = self . resolve_vars_if_possible ( found_trait_ref) ;
3478
3478
let expected_trait_ref = self . resolve_vars_if_possible ( expected_trait_ref) ;
3479
3479
@@ -3569,7 +3569,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
3569
3569
& self ,
3570
3570
obligation : & PredicateObligation < ' tcx > ,
3571
3571
span : Span ,
3572
- ) -> Result < Diag < ' tcx > , ErrorGuaranteed > {
3572
+ ) -> Result < Diag < ' a > , ErrorGuaranteed > {
3573
3573
if !self . tcx . features ( ) . generic_const_exprs {
3574
3574
let guar = self
3575
3575
. dcx ( )
0 commit comments