diff options
| author | Ralf Jung <post@ralfj.de> | 2025-01-04 11:41:51 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-01-04 11:41:51 +0100 |
| commit | 3cd3649c6cd370ac20e47f40bd5f210c9fe63f92 (patch) | |
| tree | 699d6f81a303789007d9efa24d485f1c3bd3f0b5 /compiler/rustc_const_eval/src/interpret/call.rs | |
| parent | be65012aa34aa3b8d27e0e372b9eb86743d5aa8f (diff) | |
| download | rust-3cd3649c6cd370ac20e47f40bd5f210c9fe63f92.tar.gz rust-3cd3649c6cd370ac20e47f40bd5f210c9fe63f92.zip | |
rustc_intrinsic: support functions without body; they are implicitly marked as must-be-overridden
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/call.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/call.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/call.rs b/compiler/rustc_const_eval/src/interpret/call.rs index 99f0ac702c5..e6a34193c9d 100644 --- a/compiler/rustc_const_eval/src/interpret/call.rs +++ b/compiler/rustc_const_eval/src/interpret/call.rs @@ -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, |
