about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/const_eval
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-05 20:35:52 +0200
committerRalf Jung <post@ralfj.de>2024-08-05 22:42:34 +0200
commit46896d6f667bad2307efe22a75fc39f040302ae5 (patch)
tree9ea7f177345f5a787f0bfac076ec5318b49f2f33 /compiler/rustc_const_eval/src/const_eval
parent83e9b93c90bcd7f52d17d09b52e3a2eff707c46a (diff)
downloadrust-46896d6f667bad2307efe22a75fc39f040302ae5.tar.gz
rust-46896d6f667bad2307efe22a75fc39f040302ae5.zip
interpret: move nullary-op evaluation into operator.rs
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs
index 901149825bf..79e8e212776 100644
--- a/compiler/rustc_const_eval/src/const_eval/machine.rs
+++ b/compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -458,7 +458,7 @@ impl<'tcx> interpret::Machine<'tcx> for CompileTimeMachine<'tcx> {
         _unwind: mir::UnwindAction,
     ) -> InterpResult<'tcx, Option<ty::Instance<'tcx>>> {
         // Shared intrinsics.
-        if ecx.emulate_intrinsic(instance, args, dest, target)? {
+        if ecx.eval_intrinsic(instance, args, dest, target)? {
             return Ok(None);
         }
         let intrinsic_name = ecx.tcx.item_name(instance.def_id());