Skip to content

Commit bcaf6eb

Browse files
committed
Fix build
1 parent 23bfbe2 commit bcaf6eb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/mir.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ impl<'tcx> AnalysisCtxt<'tcx> {
205205
| ty::InstanceDef::DropGlue(..)
206206
| ty::InstanceDef::CloneShim(..)
207207
| ty::InstanceDef::ThreadLocalShim(..)
208-
| ty::InstanceDef::FnPtrAddrShim(..) => self.mir_shims(instance),
208+
| ty::InstanceDef::FnPtrAddrShim(..)
209+
| ty::InstanceDef::AsyncDropGlueCtorShim(..) => self.mir_shims(instance),
209210
}
210211
}
211212
}

src/monomorphize_collector.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,13 +731,14 @@ fn visit_instance_use<'tcx>(
731731
ty::InstanceDef::ThreadLocalShim(..) => {
732732
bug!("{:?} being reified", instance);
733733
}
734-
ty::InstanceDef::DropGlue(_, None) => {
734+
ty::InstanceDef::DropGlue(_, None) | ty::InstanceDef::AsyncDropGlueCtorShim(_, None) => {
735735
// Don't need to emit noop drop glue if we are calling directly.
736736
if !is_direct_call {
737737
output.push(create_fn_mono_item(tcx, instance, source));
738738
}
739739
}
740740
ty::InstanceDef::DropGlue(_, Some(_))
741+
| ty::InstanceDef::AsyncDropGlueCtorShim(_, Some(_))
741742
| ty::InstanceDef::VTableShim(..)
742743
| ty::InstanceDef::ReifyShim(..)
743744
| ty::InstanceDef::ClosureOnceShim { .. }

0 commit comments

Comments
 (0)