@@ -179,7 +179,7 @@ impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
179179 let resume = self . location_table . start_index ( resume. start_location ( ) ) ;
180180 for ( i, data) in borrow_set. iter_enumerated ( ) {
181181 if borrow_of_local_data ( data. borrowed_place ) {
182- self . all_facts . invalidates . push ( ( resume, i) ) ;
182+ self . all_facts . loan_invalidated_at . push ( ( resume, i) ) ;
183183 }
184184 }
185185
@@ -191,7 +191,7 @@ impl<'cx, 'tcx> Visitor<'tcx> for InvalidationGenerator<'cx, 'tcx> {
191191 let start = self . location_table . start_index ( location) ;
192192 for ( i, data) in borrow_set. iter_enumerated ( ) {
193193 if borrow_of_local_data ( data. borrowed_place ) {
194- self . all_facts . invalidates . push ( ( start, i) ) ;
194+ self . all_facts . loan_invalidated_at . push ( ( start, i) ) ;
195195 }
196196 }
197197 }
@@ -420,26 +420,26 @@ impl<'cx, 'tcx> InvalidationGenerator<'cx, 'tcx> {
420420
421421 // Unique and mutable borrows are invalidated by reads from any
422422 // involved path
423- this. generate_invalidates ( borrow_index, location) ;
423+ this. emit_loan_invalidated_at ( borrow_index, location) ;
424424 }
425425
426426 ( Reservation ( _) | Activation ( _, _) | Write ( _) , _) => {
427427 // unique or mutable borrows are invalidated by writes.
428428 // Reservations count as writes since we need to check
429429 // that activating the borrow will be OK
430430 // FIXME(bob_twinkles) is this actually the right thing to do?
431- this. generate_invalidates ( borrow_index, location) ;
431+ this. emit_loan_invalidated_at ( borrow_index, location) ;
432432 }
433433 }
434434 Control :: Continue
435435 } ,
436436 ) ;
437437 }
438438
439- /// Generates a new `invalidates (L, B)` fact.
440- fn generate_invalidates ( & mut self , b : BorrowIndex , l : Location ) {
439+ /// Generates a new `loan_invalidated_at (L, B)` fact.
440+ fn emit_loan_invalidated_at ( & mut self , b : BorrowIndex , l : Location ) {
441441 let lidx = self . location_table . start_index ( l) ;
442- self . all_facts . invalidates . push ( ( lidx, b) ) ;
442+ self . all_facts . loan_invalidated_at . push ( ( lidx, b) ) ;
443443 }
444444
445445 fn check_activations ( & mut self , location : Location ) {
0 commit comments