Skip to content

Commit 2572c81

Browse files
oli-obkRalfJung
andauthored
Update compiler/rustc_const_eval/src/const_eval/machine.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 0109d54 commit 2572c81

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_const_eval/src/const_eval

1 file changed

+2
-1
lines changed

compiler/rustc_const_eval/src/const_eval/machine.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
468468

469469
// CTFE-specific intrinsics.
470470
let Some(ret) = target else {
471-
// Handle diverging intrinsics.
471+
// Handle diverging intrinsics. We can't handle any of them (that are not already
472+
// handled above), but check if there is a fallback body.
472473
if ecx.tcx.intrinsic(instance.def_id()).unwrap().must_be_overridden {
473474
throw_unsup_format!(
474475
"intrinsic `{intrinsic_name}` is not supported at compile-time"

0 commit comments

Comments
 (0)