From 34c75cfae7ffd198aaba94666b4cfe849ab4ee98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 29 Apr 2020 12:24:51 +0200 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/71518/ update test output --- tests/ui/implicit_saturating_sub.stderr | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/ui/implicit_saturating_sub.stderr b/tests/ui/implicit_saturating_sub.stderr index a8ba870b1dda..0fbf5eaf6da1 100644 --- a/tests/ui/implicit_saturating_sub.stderr +++ b/tests/ui/implicit_saturating_sub.stderr @@ -1,3 +1,11 @@ +error: this arithmetic operation will overflow + --> $DIR/implicit_saturating_sub.rs:31:25 + | +LL | let mut u_16: u16 = end_16 - start_16; + | ^^^^^^^^^^^^^^^^^ attempt to subtract with overflow + | + = note: `#[deny(arithmetic_overflow)]` on by default + error: Implicitly performing saturating subtraction --> $DIR/implicit_saturating_sub.rs:13:5 | @@ -184,5 +192,5 @@ LL | | i_64 -= 1; LL | | } | |_____^ help: try: `i_64 = i_64.saturating_sub(1);` -error: aborting due to 23 previous errors +error: aborting due to 24 previous errors