@@ -327,7 +327,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
327
327
& mut self ,
328
328
mpi : MovePathIndex ,
329
329
move_span : Span ,
330
- err : & mut DiagnosticBuilder < ' _ > ,
330
+ err : & mut DiagnosticBuilder < ' tcx > ,
331
331
in_pattern : & mut bool ,
332
332
move_spans : UseSpans < ' _ > ,
333
333
) {
@@ -486,7 +486,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
486
486
desired_action : InitializationRequiringAction ,
487
487
span : Span ,
488
488
use_spans : UseSpans < ' tcx > ,
489
- ) -> DiagnosticBuilder < ' cx > {
489
+ ) -> DiagnosticBuilder < ' tcx > {
490
490
// We need all statements in the body where the binding was assigned to later find all
491
491
// the branching code paths where the binding *wasn't* assigned to.
492
492
let inits = & self . move_data . init_path_map [ mpi] ;
@@ -880,7 +880,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
880
880
location : Location ,
881
881
( place, _span) : ( Place < ' tcx > , Span ) ,
882
882
borrow : & BorrowData < ' tcx > ,
883
- ) -> DiagnosticBuilder < ' cx > {
883
+ ) -> DiagnosticBuilder < ' tcx > {
884
884
let borrow_spans = self . retrieve_borrow_spans ( borrow) ;
885
885
let borrow_span = borrow_spans. args_or_use ( ) ;
886
886
@@ -930,7 +930,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
930
930
( place, span) : ( Place < ' tcx > , Span ) ,
931
931
gen_borrow_kind : BorrowKind ,
932
932
issued_borrow : & BorrowData < ' tcx > ,
933
- ) -> DiagnosticBuilder < ' cx > {
933
+ ) -> DiagnosticBuilder < ' tcx > {
934
934
let issued_spans = self . retrieve_borrow_spans ( issued_borrow) ;
935
935
let issued_span = issued_spans. args_or_use ( ) ;
936
936
@@ -2129,7 +2129,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2129
2129
drop_span : Span ,
2130
2130
borrow_spans : UseSpans < ' tcx > ,
2131
2131
explanation : BorrowExplanation < ' tcx > ,
2132
- ) -> DiagnosticBuilder < ' cx > {
2132
+ ) -> DiagnosticBuilder < ' tcx > {
2133
2133
debug ! (
2134
2134
"report_local_value_does_not_live_long_enough(\
2135
2135
{:?}, {:?}, {:?}, {:?}, {:?}\
@@ -2304,7 +2304,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2304
2304
& mut self ,
2305
2305
drop_span : Span ,
2306
2306
borrow_span : Span ,
2307
- ) -> DiagnosticBuilder < ' cx > {
2307
+ ) -> DiagnosticBuilder < ' tcx > {
2308
2308
debug ! (
2309
2309
"report_thread_local_value_does_not_live_long_enough(\
2310
2310
{:?}, {:?}\
@@ -2329,7 +2329,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2329
2329
borrow_spans : UseSpans < ' tcx > ,
2330
2330
proper_span : Span ,
2331
2331
explanation : BorrowExplanation < ' tcx > ,
2332
- ) -> DiagnosticBuilder < ' cx > {
2332
+ ) -> DiagnosticBuilder < ' tcx > {
2333
2333
if let BorrowExplanation :: MustBeValidFor { category, span, from_closure : false , .. } =
2334
2334
explanation
2335
2335
{
@@ -2496,7 +2496,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2496
2496
return_span : Span ,
2497
2497
category : ConstraintCategory < ' tcx > ,
2498
2498
opt_place_desc : Option < & String > ,
2499
- ) -> Option < DiagnosticBuilder < ' cx > > {
2499
+ ) -> Option < DiagnosticBuilder < ' tcx > > {
2500
2500
let return_kind = match category {
2501
2501
ConstraintCategory :: Return ( _) => "return" ,
2502
2502
ConstraintCategory :: Yield => "yield" ,
@@ -2591,7 +2591,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2591
2591
constraint_span : Span ,
2592
2592
captured_var : & str ,
2593
2593
scope : & str ,
2594
- ) -> DiagnosticBuilder < ' cx > {
2594
+ ) -> DiagnosticBuilder < ' tcx > {
2595
2595
let tcx = self . infcx . tcx ;
2596
2596
let args_span = use_span. args_or_use ( ) ;
2597
2597
@@ -2699,7 +2699,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2699
2699
upvar_span : Span ,
2700
2700
upvar_name : Symbol ,
2701
2701
escape_span : Span ,
2702
- ) -> DiagnosticBuilder < ' cx > {
2702
+ ) -> DiagnosticBuilder < ' tcx > {
2703
2703
let tcx = self . infcx . tcx ;
2704
2704
2705
2705
let escapes_from = tcx. def_descr ( self . mir_def_id ( ) . to_def_id ( ) ) ;
0 commit comments