diff options
| author | Ralf Jung <post@ralfj.de> | 2022-06-01 13:24:44 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-06-01 14:08:17 -0400 |
| commit | 4dc5d457d86f7414b1a2b4d81bf7428b3ffcbb34 (patch) | |
| tree | 2e785fa382a33c6aa45d12b1bc8c6139123d2b5b /compiler/rustc_const_eval/src/interpret | |
| parent | 395a09c3dafe0c7838c9ca41d2b47bb5e79a5b6d (diff) | |
| download | rust-4dc5d457d86f7414b1a2b4d81bf7428b3ffcbb34.tar.gz rust-4dc5d457d86f7414b1a2b4d81bf7428b3ffcbb34.zip | |
rename PointerAddress → PointerExposeAddress
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/cast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/cast.rs b/compiler/rustc_const_eval/src/interpret/cast.rs index af563c1450e..520ae409e6b 100644 --- a/compiler/rustc_const_eval/src/interpret/cast.rs +++ b/compiler/rustc_const_eval/src/interpret/cast.rs @@ -31,9 +31,9 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { self.unsize_into(src, cast_ty, dest)?; } - PointerAddress => { + PointerExposeAddress => { let src = self.read_immediate(src)?; - let res = self.pointer_address_cast(&src, cast_ty)?; + let res = self.pointer_expose_address_cast(&src, cast_ty)?; self.write_immediate(res, dest)?; } @@ -184,7 +184,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { Ok(self.cast_from_int_like(scalar, src.layout, cast_ty)?.into()) } - pub fn pointer_address_cast( + pub fn pointer_expose_address_cast( &mut self, src: &ImmTy<'tcx, M::PointerTag>, cast_ty: Ty<'tcx>, |
