diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-11 17:29:12 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-02-18 21:35:02 +0000 |
| commit | e9c73ea502d789fc103e012c052e25cf55f653e3 (patch) | |
| tree | b49f19fd1e83849183b2da7a40cc6c8a0851c151 /compiler/rustc_codegen_ssa/src | |
| parent | 4f13aa7f46630b92ac6148e006fb553e712f7d27 (diff) | |
| download | rust-e9c73ea502d789fc103e012c052e25cf55f653e3.tar.gz rust-e9c73ea502d789fc103e012c052e25cf55f653e3.zip | |
Make name more explicit.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/block.rs | 4 |
1 files 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); } } |
