@@ -431,13 +431,13 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
431431 return ;
432432 }
433433 }
434- Rvalue :: AddressOf ( mutbl, place) => {
434+ Rvalue :: RawPtr ( mutbl, place) => {
435435 if let Some ( reborrowed_place_ref) = place_as_reborrow ( self . tcx , self . body , place) {
436436 let ctx = match mutbl {
437437 Mutability :: Not => {
438- PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: AddressOf )
438+ PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: RawBorrow )
439439 }
440- Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: AddressOf ) ,
440+ Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: RawBorrow ) ,
441441 } ;
442442 self . visit_local ( reborrowed_place_ref. local , ctx, location) ;
443443 self . visit_projection ( reborrowed_place_ref, ctx, location) ;
@@ -472,7 +472,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
472472 }
473473
474474 Rvalue :: Ref ( _, BorrowKind :: Mut { .. } , place)
475- | Rvalue :: AddressOf ( Mutability :: Mut , place) => {
475+ | Rvalue :: RawPtr ( Mutability :: Mut , place) => {
476476 // Inside mutable statics, we allow arbitrary mutable references.
477477 // We've allowed `static mut FOO = &mut [elements];` for a long time (the exact
478478 // 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> {
493493 }
494494
495495 Rvalue :: Ref ( _, BorrowKind :: Shared | BorrowKind :: Fake ( _) , place)
496- | Rvalue :: AddressOf ( Mutability :: Not , place) => {
496+ | Rvalue :: RawPtr ( Mutability :: Not , place) => {
497497 let borrowed_place_has_mut_interior = qualifs:: in_place :: < HasMutInterior , _ > (
498498 self . ccx ,
499499 & mut |local| self . qualifs . has_mut_interior ( self . ccx , local, location) ,
0 commit comments