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