about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-06-19 18:57:15 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-06-26 10:08:52 +0200
commit819cde5dabd90dab1fb462cd713457421d0ebd36 (patch)
tree34d1d2b4b50e33ab73aef12429b53896a89d9709 /src/librustc_codegen_ssa
parente093b6525079cb71d4158f97480ac6f6ce311eac (diff)
Show the values and computation that would overflow a const evaluation or propagation
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/mir/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/mir/block.rs b/src/librustc_codegen_ssa/mir/block.rs
index 5125ce779ed..480f9a50320 100644
--- a/src/librustc_codegen_ssa/mir/block.rs
+++ b/src/librustc_codegen_ssa/mir/block.rs
@@ -380,7 +380,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
         // checked operation, just a comparison with the minimum
         // value, so we have to check for the assert message.
         if !bx.check_overflow() {
-            if let AssertKind::OverflowNeg = *msg {
+            if let AssertKind::OverflowNeg(_) = *msg {
                 const_cond = Some(expected);
             }
         }