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.)
This commit is contained in:
Felix S. Klock II 2018-11-07 15:47:49 +01:00
parent a2e090624e
commit 58c7a786b0

View file

@ -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