@@ -430,13 +430,13 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
430
430
return ;
431
431
}
432
432
}
433
- Rvalue :: AddressOf ( mutbl, place) => {
433
+ Rvalue :: RawPtr ( mutbl, place) => {
434
434
if let Some ( reborrowed_place_ref) = place_as_reborrow ( self . tcx , self . body , place) {
435
435
let ctx = match mutbl {
436
436
Mutability :: Not => {
437
- PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: AddressOf )
437
+ PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: RawBorrow )
438
438
}
439
- Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: AddressOf ) ,
439
+ Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: RawBorrow ) ,
440
440
} ;
441
441
self . visit_local ( reborrowed_place_ref. local , ctx, location) ;
442
442
self . visit_projection ( reborrowed_place_ref, ctx, location) ;
@@ -471,7 +471,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
471
471
}
472
472
473
473
Rvalue :: Ref ( _, BorrowKind :: Mut { .. } , place)
474
- | Rvalue :: AddressOf ( Mutability :: Mut , place) => {
474
+ | Rvalue :: RawPtr ( Mutability :: Mut , place) => {
475
475
// Inside mutable statics, we allow arbitrary mutable references.
476
476
// We've allowed `static mut FOO = &mut [elements];` for a long time (the exact
477
477
// reasons why are lost to history), and there is no reason to restrict that to
@@ -492,7 +492,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
492
492
}
493
493
494
494
Rvalue :: Ref ( _, BorrowKind :: Shared | BorrowKind :: Fake ( _) , place)
495
- | Rvalue :: AddressOf ( Mutability :: Not , place) => {
495
+ | Rvalue :: RawPtr ( Mutability :: Not , place) => {
496
496
let borrowed_place_has_mut_interior = qualifs:: in_place :: < HasMutInterior , _ > (
497
497
self . ccx ,
498
498
& mut |local| self . qualifs . has_mut_interior ( self . ccx , local, location) ,
0 commit comments