From 58c7a786b046b63c64428c68778cec83ee35cca0 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 7 Nov 2018 15:47:49 +0100 Subject: [PATCH] Update output of `lint-type-overflow2.stderr` to reflect its output from `rustc -O`. (The fact that output differs under `opt-level=0` is an instance of #55757.) --- src/test/ui/lint/lint-type-overflow2.stderr | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/test/ui/lint/lint-type-overflow2.stderr b/src/test/ui/lint/lint-type-overflow2.stderr index 78dd282c88d8f..1fb63ac759579 100644 --- a/src/test/ui/lint/lint-type-overflow2.stderr +++ b/src/test/ui/lint/lint-type-overflow2.stderr @@ -34,11 +34,11 @@ warning: literal out of range for f64 LL | let x = 1.7976931348623159e+308_f64; //~ warn: literal out of range for f64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -warning: attempt to negate with overflow +warning: this expression will panic at runtime --> $DIR/lint-type-overflow2.rs:19:18 | LL | let x2: i8 = --128; //~ warn: literal out of range for i8 - | ^^^^^ + | ^^^^^ attempt to negate with overflow | note: lint level defined here --> $DIR/lint-type-overflow2.rs:13:9 @@ -46,9 +46,3 @@ note: lint level defined here LL | #![warn(const_err)] | ^^^^^^^^^ -warning: this expression will panic at runtime - --> $DIR/lint-type-overflow2.rs:19:18 - | -LL | let x2: i8 = --128; //~ warn: literal out of range for i8 - | ^^^^^ attempt to negate with overflow -