consistently use VTable over Vtable (matching stable stdlib API RawWakerVTable)
This commit is contained in:
parent
114da84996
commit
3dad266f40
34 changed files with 90 additions and 88 deletions
|
@ -25,7 +25,7 @@
|
|||
//! codegen unit:
|
||||
//!
|
||||
//! - Constants
|
||||
//! - Vtables
|
||||
//! - VTables
|
||||
//! - Object Shims
|
||||
//!
|
||||
//!
|
||||
|
@ -992,7 +992,7 @@ fn visit_instance_use<'tcx>(
|
|||
}
|
||||
}
|
||||
ty::InstanceDef::DropGlue(_, Some(_))
|
||||
| ty::InstanceDef::VtableShim(..)
|
||||
| ty::InstanceDef::VTableShim(..)
|
||||
| ty::InstanceDef::ReifyShim(..)
|
||||
| ty::InstanceDef::ClosureOnceShim { .. }
|
||||
| ty::InstanceDef::Item(..)
|
||||
|
@ -1427,7 +1427,7 @@ fn collect_miri<'tcx>(tcx: TyCtxt<'tcx>, alloc_id: AllocId, output: &mut MonoIte
|
|||
output.push(create_fn_mono_item(tcx, fn_instance, DUMMY_SP));
|
||||
}
|
||||
}
|
||||
GlobalAlloc::Vtable(ty, trait_ref) => {
|
||||
GlobalAlloc::VTable(ty, trait_ref) => {
|
||||
// FIXME(RJ) no ideas if this is correct. There is this nice
|
||||
// `create_mono_items_for_vtable_methods` method but I wouldn't know how to call it from
|
||||
// here. So instead we just generate the actual vtable and recurse.
|
||||
|
|
|
@ -271,7 +271,7 @@ fn characteristic_def_id_of_mono_item<'tcx>(
|
|||
MonoItem::Fn(instance) => {
|
||||
let def_id = match instance.def {
|
||||
ty::InstanceDef::Item(def) => def.did,
|
||||
ty::InstanceDef::VtableShim(..)
|
||||
ty::InstanceDef::VTableShim(..)
|
||||
| ty::InstanceDef::ReifyShim(..)
|
||||
| ty::InstanceDef::FnPtrShim(..)
|
||||
| ty::InstanceDef::ClosureOnceShim { .. }
|
||||
|
@ -425,7 +425,7 @@ fn mono_item_visibility<'tcx>(
|
|||
InstanceDef::DropGlue(def_id, Some(_)) => def_id,
|
||||
|
||||
// These are all compiler glue and such, never exported, always hidden.
|
||||
InstanceDef::VtableShim(..)
|
||||
InstanceDef::VTableShim(..)
|
||||
| InstanceDef::ReifyShim(..)
|
||||
| InstanceDef::FnPtrShim(..)
|
||||
| InstanceDef::Virtual(..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue