File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -337,17 +337,17 @@ impl<'tcx> Stacks {
337
337
// the stack than the one we come from, just use that.
338
338
// IOW, we check if `new_bor` *already* is "derived from" `ptr.tag`.
339
339
// This also checks frozenness, if required.
340
- let bor_already_happened = match ( ptr_idx, stack. deref ( new_bor, new_kind) ) {
340
+ let bor_redundant = match ( ptr_idx, stack. deref ( new_bor, new_kind) ) {
341
341
// If the new borrow works with the frozen item, or else if it lives
342
342
// above the old one in the stack, our job here is done.
343
343
( _, Ok ( None ) ) => true ,
344
344
( Some ( ptr_idx) , Ok ( Some ( new_idx) ) ) if new_idx >= ptr_idx => true ,
345
345
// Otherwise we need to create a new borrow.
346
346
_ => false ,
347
347
} ;
348
- if bor_already_happened {
348
+ if bor_redundant {
349
349
assert ! ( new_bor. is_shared( ) , "A unique reborrow can never be redundant" ) ;
350
- trace ! ( "Reborrow is a NOP " ) ;
350
+ trace ! ( "reborrow is redundant " ) ;
351
351
continue ;
352
352
}
353
353
// We need to do some actual work.
You can’t perform that action at this time.
0 commit comments