about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/common.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-07-19 19:57:44 -0400
committerRalf Jung <post@ralfj.de>2022-07-20 17:12:07 -0400
commit3dad266f4018a8356b8259012d09088520735b13 (patch)
tree19d613b9daeae18dc9b68078bff5204a15ab8b6e /compiler/rustc_codegen_gcc/src/common.rs
parent114da8499642b0b29d624c7e30c8f07e25933ff6 (diff)
downloadrust-3dad266f4018a8356b8259012d09088520735b13.tar.gz
rust-3dad266f4018a8356b8259012d09088520735b13.zip
consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable)
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/common.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/common.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/common.rs b/compiler/rustc_codegen_gcc/src/common.rs
index 3868f2f7a49..d1afca18427 100644
--- a/compiler/rustc_codegen_gcc/src/common.rs
+++ b/compiler/rustc_codegen_gcc/src/common.rs
@@ -185,7 +185,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
                 let (alloc_id, offset) = ptr.into_parts();
                 // For vtables, get the underlying data allocation.
                 let alloc_id = match self.tcx.global_alloc(alloc_id) {
-                    GlobalAlloc::Vtable(ty, trait_ref) => {
+                    GlobalAlloc::VTable(ty, trait_ref) => {
                         self.tcx.vtable_allocation((ty, trait_ref))
                     }
                     _ => alloc_id,
@@ -208,7 +208,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
                         GlobalAlloc::Function(fn_instance) => {
                             self.get_fn_addr(fn_instance)
                         },
-                        GlobalAlloc::Vtable(..) => panic!("vtables are already handled"),
+                        GlobalAlloc::VTable(..) => panic!("vtables are already handled"),
                         GlobalAlloc::Static(def_id) => {
                             assert!(self.tcx.is_static(def_id));
                             self.get_static(def_id).get_address(None)