about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/traits.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-04-16 18:37:56 +0200
committerRalf Jung <post@ralfj.de>2024-04-17 07:35:48 +0200
commitae7b07f2dc9b07aceab318829538222666945efc (patch)
treed5e78fcc8ca4e38cb976c1b897560e845d5a9785 /compiler/rustc_const_eval/src/interpret/traits.rs
parent9e239bdc764f8845b8959962cfaf654524a12b38 (diff)
downloadrust-ae7b07f2dc9b07aceab318829538222666945efc.tar.gz
rust-ae7b07f2dc9b07aceab318829538222666945efc.zip
interpret: rename base_pointer -> root_pointer
also in Miri, "base tag" -> "root tag"
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/traits.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/traits.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/traits.rs b/compiler/rustc_const_eval/src/interpret/traits.rs
index a9ca268a2a9..b603ef0d27a 100644
--- a/compiler/rustc_const_eval/src/interpret/traits.rs
+++ b/compiler/rustc_const_eval/src/interpret/traits.rs
@@ -28,7 +28,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
         ensure_monomorphic_enough(*self.tcx, poly_trait_ref)?;
 
         let vtable_symbolic_allocation = self.tcx.reserve_and_set_vtable_alloc(ty, poly_trait_ref);
-        let vtable_ptr = self.global_base_pointer(Pointer::from(vtable_symbolic_allocation))?;
+        let vtable_ptr = self.global_root_pointer(Pointer::from(vtable_symbolic_allocation))?;
         Ok(vtable_ptr.into())
     }