Fix disabling the export of noop async_drop_in_place_raw
This commit is contained in:
parent
80c0b7e90f
commit
e239e73a77
9 changed files with 53 additions and 30 deletions
|
@ -500,6 +500,12 @@ impl<'tcx> Context for TablesWrapper<'tcx> {
|
|||
matches!(instance.def, ty::InstanceDef::DropGlue(_, None))
|
||||
}
|
||||
|
||||
fn is_empty_async_drop_ctor_shim(&self, def: InstanceDef) -> bool {
|
||||
let tables = self.0.borrow_mut();
|
||||
let instance = tables.instances[def];
|
||||
matches!(instance.def, ty::InstanceDef::AsyncDropGlueCtorShim(_, None))
|
||||
}
|
||||
|
||||
fn mono_instance(&self, def_id: stable_mir::DefId) -> stable_mir::mir::mono::Instance {
|
||||
let mut tables = self.0.borrow_mut();
|
||||
let def_id = tables[def_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue