Skip to content

Commit

Permalink
Update output of lint-type-overflow2.stderr to reflect its output f…
Browse files Browse the repository at this point in the history
…rom `rustc -O`.

(The fact that output differs under `opt-level=0` is an instance of #55757.)
  • Loading branch information
pnkfelix committed Nov 7, 2018
1 parent a2e0906 commit 58c7a78
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/test/ui/lint/lint-type-overflow2.stderr
Expand Up @@ -34,21 +34,15 @@ 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
|
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

0 comments on commit 58c7a78

Please sign in to comment.