@@ -430,13 +430,13 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
430430 return ;
431431 }
432432 }
433- Rvalue :: AddressOf ( mutbl, place) => {
433+ Rvalue :: RawPtr ( mutbl, place) => {
434434 if let Some ( reborrowed_place_ref) = place_as_reborrow ( self . tcx , self . body , place) {
435435 let ctx = match mutbl {
436436 Mutability :: Not => {
437- PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: AddressOf )
437+ PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: RawBorrow )
438438 }
439- Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: AddressOf ) ,
439+ Mutability :: Mut => PlaceContext :: MutatingUse ( MutatingUseContext :: RawBorrow ) ,
440440 } ;
441441 self . visit_local ( reborrowed_place_ref. local , ctx, location) ;
442442 self . visit_projection ( reborrowed_place_ref, ctx, location) ;
@@ -471,7 +471,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
471471 }
472472
473473 Rvalue :: Ref ( _, BorrowKind :: Mut { .. } , place)
474- | Rvalue :: AddressOf ( Mutability :: Mut , place) => {
474+ | Rvalue :: RawPtr ( Mutability :: Mut , place) => {
475475 // Inside mutable statics, we allow arbitrary mutable references.
476476 // We've allowed `static mut FOO = &mut [elements];` for a long time (the exact
477477 // 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> {
492492 }
493493
494494 Rvalue :: Ref ( _, BorrowKind :: Shared | BorrowKind :: Fake ( _) , place)
495- | Rvalue :: AddressOf ( Mutability :: Not , place) => {
495+ | Rvalue :: RawPtr ( Mutability :: Not , place) => {
496496 let borrowed_place_has_mut_interior = qualifs:: in_place :: < HasMutInterior , _ > (
497497 self . ccx ,
498498 & mut |local| self . qualifs . has_mut_interior ( self . ccx , local, location) ,
0 commit comments