rustc_intrinsic: support functions without body; they are implicitly marked as must-be-overridden
This commit is contained in:
parent
be65012aa3
commit
3cd3649c6c
19 changed files with 118 additions and 68 deletions
|
@ -566,7 +566,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
|
|||
| ty::InstanceKind::ThreadLocalShim(..)
|
||||
| ty::InstanceKind::AsyncDropGlueCtorShim(..)
|
||||
| ty::InstanceKind::Item(_) => {
|
||||
// We need MIR for this fn
|
||||
// We need MIR for this fn.
|
||||
// Note that this can be an intrinsic, if we are executing its fallback body.
|
||||
let Some((body, instance)) = M::find_mir_or_eval_fn(
|
||||
self,
|
||||
instance,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue