about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-02-20 13:36:03 +0100
committerRalf Jung <post@ralfj.de>2023-02-20 13:36:03 +0100
commitd1a242533392d4772c84ce2be80cf7fd40aa8be3 (patch)
treecdeb9012fc4907fc9a04be5cd69ba8dc4110fe4b /src/tools
parenta52c7507327eb6a4459a93f6f04653380471dedf (diff)
parent2f163554866e1b4b348811e9df6a4a753beb0abf (diff)
downloadrust-d1a242533392d4772c84ce2be80cf7fd40aa8be3.tar.gz
rust-d1a242533392d4772c84ce2be80cf7fd40aa8be3.zip
Merge from rustc
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/miri/src/machine.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/src/machine.rs b/src/tools/miri/src/machine.rs
index f9a6ef34c2f..8bbf9f87b43 100644
--- a/src/tools/miri/src/machine.rs
+++ b/src/tools/miri/src/machine.rs
@@ -821,8 +821,8 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
     }
 
     #[inline(always)]
-    fn checked_binop_checks_overflow(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool {
-        ecx.tcx.sess.overflow_checks()
+    fn ignore_checkable_overflow_assertions(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool {
+        !ecx.tcx.sess.overflow_checks()
     }
 
     #[inline(always)]