consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable)
This commit is contained in:
parent
8f290184d2
commit
3f24eb870d
@ -185,7 +185,7 @@ fn scalar_to_backend(&self, cv: Scalar, layout: abi::Scalar, ty: Type<'gcc>) ->
|
||||
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 @@ fn scalar_to_backend(&self, cv: Scalar, layout: abi::Scalar, ty: Type<'gcc>) ->
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user