diff options
| author | lcnr <rust@lcnr.de> | 2022-07-20 14:32:58 +0200 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-03-27 12:16:54 +0000 |
| commit | 0c13565ca66d25d15ee9146919dd74e57cdfda89 (patch) | |
| tree | b0a7561ac7421c0df2e6daa3a047cf3dfb107627 /compiler/rustc_const_eval/src | |
| parent | 7a0600714ab1a4cb2d1a88cd0660b9f9a2c07309 (diff) | |
| download | rust-0c13565ca66d25d15ee9146919dd74e57cdfda89.tar.gz rust-0c13565ca66d25d15ee9146919dd74e57cdfda89.zip | |
Add a builtin `FnPtr` trait
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/terminator.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/terminator.rs b/compiler/rustc_const_eval/src/interpret/terminator.rs index fc83985eaca..54d67bd1f29 100644 --- a/compiler/rustc_const_eval/src/interpret/terminator.rs +++ b/compiler/rustc_const_eval/src/interpret/terminator.rs @@ -382,6 +382,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { | ty::InstanceDef::FnPtrShim(..) | ty::InstanceDef::DropGlue(..) | ty::InstanceDef::CloneShim(..) + | ty::InstanceDef::FnPtrAddrShim(..) | ty::InstanceDef::Item(_) => { // We need MIR for this fn let Some((body, instance)) = |
