From e9c73ea502d789fc103e012c052e25cf55f653e3 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 11 Feb 2023 17:29:12 +0000 Subject: [PATCH] Make name more explicit. --- compiler/rustc_codegen_ssa/src/mir/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs index 7babb357c7c..7d16964abfd 100644 --- a/compiler/rustc_codegen_ssa/src/mir/block.rs +++ b/compiler/rustc_codegen_ssa/src/mir/block.rs @@ -566,12 +566,12 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { // another crate (mostly core::num generic/#[inline] fns), // while the current crate doesn't use overflow checks. if !bx.cx().check_overflow() { - let unchecked_overflow = match msg { + let overflow_not_to_check = match msg { AssertKind::OverflowNeg(..) => true, AssertKind::Overflow(op, ..) => op.is_checkable(), _ => false, }; - if unchecked_overflow { + if overflow_not_to_check { const_cond = Some(expected); } }