]> git.lizzy.rs Git - rust.git/commitdiff
fix type in function name
authorRalf Jung <post@ralfj.de>
Tue, 5 Jul 2022 21:48:43 +0000 (17:48 -0400)
committerRalf Jung <post@ralfj.de>
Tue, 5 Jul 2022 21:48:43 +0000 (17:48 -0400)
compiler/rustc_const_eval/src/interpret/machine.rs
compiler/rustc_const_eval/src/interpret/operator.rs

index 54c9e99cf97c81b6fd2e8311f35379627323af14..4661a7c28286de438b644a8d9ef8a0b431e6d9ab 100644 (file)
@@ -145,7 +145,7 @@ fn enforce_abi(_ecx: &InterpCx<'mir, 'tcx, Self>) -> bool {
     }
 
     /// Whether CheckedBinOp MIR statements should actually check for overflow.
-    fn check_binop_checks_overflow(_ecx: &InterpCx<'mir, 'tcx, Self>) -> bool;
+    fn checked_binop_checks_overflow(_ecx: &InterpCx<'mir, 'tcx, Self>) -> bool;
 
     /// Entry point for obtaining the MIR of anything that should get evaluated.
     /// So not just functions and shims, but also const/static initializers, anonymous
@@ -472,7 +472,7 @@ fn enforce_number_no_provenance(_ecx: &InterpCx<$mir, $tcx, Self>) -> bool {
     }
 
     #[inline(always)]
-    fn check_binop_checks_overflow(_ecx: &InterpCx<$mir, $tcx, Self>) -> bool {
+    fn checked_binop_checks_overflow(_ecx: &InterpCx<$mir, $tcx, Self>) -> bool {
         true
     }
 
index 942bdb36645bde6cc3add4e810f6537994ffef35..f0c113376eab1c576a46edc8f8d6e6975e8a6110 100644 (file)
@@ -33,7 +33,7 @@ pub fn binop_with_overflow(
         // As per https://github.com/rust-lang/rust/pull/98738, we always return `false` in the 2nd
         // component when overflow checking is disabled.
         let overflowed =
-            overflowed && (force_overflow_checks || M::check_binop_checks_overflow(self));
+            overflowed && (force_overflow_checks || M::checked_binop_checks_overflow(self));
         // Write the result to `dest`.
         if let Abi::ScalarPair(..) = dest.layout.abi {
             // We can use the optimized path and avoid `place_field` (which might do