Skip to content

Commit 58c7a78

Browse files
committed
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 rust-lang#55757.)
1 parent a2e0906 commit 58c7a78

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/test/ui/lint/lint-type-overflow2.stderr

+2-8
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,15 @@ warning: literal out of range for f64
3434
LL | let x = 1.7976931348623159e+308_f64; //~ warn: literal out of range for f64
3535
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3636

37-
warning: attempt to negate with overflow
37+
warning: this expression will panic at runtime
3838
--> $DIR/lint-type-overflow2.rs:19:18
3939
|
4040
LL | let x2: i8 = --128; //~ warn: literal out of range for i8
41-
| ^^^^^
41+
| ^^^^^ attempt to negate with overflow
4242
|
4343
note: lint level defined here
4444
--> $DIR/lint-type-overflow2.rs:13:9
4545
|
4646
LL | #![warn(const_err)]
4747
| ^^^^^^^^^
4848

49-
warning: this expression will panic at runtime
50-
--> $DIR/lint-type-overflow2.rs:19:18
51-
|
52-
LL | let x2: i8 = --128; //~ warn: literal out of range for i8
53-
| ^^^^^ attempt to negate with overflow
54-

0 commit comments

Comments
 (0)