Skip to content

Commit 5fc2eec

Browse files
committed
Accomodate new shim types
1 parent 704e36b commit 5fc2eec

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/mir.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ impl<'tcx> AnalysisCtxt<'tcx> {
201201
| ty::InstanceDef::FnPtrShim(..)
202202
| ty::InstanceDef::Virtual(..)
203203
| ty::InstanceDef::ClosureOnceShim { .. }
204+
| ty::InstanceDef::ConstructCoroutineInClosureShim { .. }
205+
| ty::InstanceDef::CoroutineKindShim { .. }
204206
| ty::InstanceDef::DropGlue(..)
205207
| ty::InstanceDef::CloneShim(..)
206208
| ty::InstanceDef::ThreadLocalShim(..)

src/monomorphize_collector.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ fn visit_instance_use<'tcx>(
737737
| ty::InstanceDef::VTableShim(..)
738738
| ty::InstanceDef::ReifyShim(..)
739739
| ty::InstanceDef::ClosureOnceShim { .. }
740+
| ty::InstanceDef::ConstructCoroutineInClosureShim { .. }
741+
| ty::InstanceDef::CoroutineKindShim { .. }
740742
| ty::InstanceDef::Item(..)
741743
| ty::InstanceDef::FnPtrShim(..)
742744
| ty::InstanceDef::CloneShim(..)

0 commit comments

Comments
 (0)