Rollup merge of #98964 - RalfJung:typo, r=Dylan-DPC
fix typo in function name I don't know what I was doing when I named that function... follow-up to #98888 r? `@oli-obk`
This commit is contained in:
@@ -145,7 +145,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Whether CheckedBinOp MIR statements should actually check for overflow.
|
/// 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.
|
/// Entry point for obtaining the MIR of anything that should get evaluated.
|
||||||
/// So not just functions and shims, but also const/static initializers, anonymous
|
/// So not just functions and shims, but also const/static initializers, anonymous
|
||||||
@@ -472,7 +472,7 @@ pub macro compile_time_machine(<$mir: lifetime, $tcx: lifetime>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[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
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
|||||||
// As per https://github.com/rust-lang/rust/pull/98738, we always return `false` in the 2nd
|
// As per https://github.com/rust-lang/rust/pull/98738, we always return `false` in the 2nd
|
||||||
// component when overflow checking is disabled.
|
// component when overflow checking is disabled.
|
||||||
let overflowed =
|
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`.
|
// Write the result to `dest`.
|
||||||
if let Abi::ScalarPair(..) = dest.layout.abi {
|
if let Abi::ScalarPair(..) = dest.layout.abi {
|
||||||
// We can use the optimized path and avoid `place_field` (which might do
|
// We can use the optimized path and avoid `place_field` (which might do
|
||||||
|
|||||||
Reference in New Issue
Block a user