Skip to content

Commit f45f760

Browse files
committed
Adapt stderr of UI test to PR #48449
1 parent 5c70619 commit f45f760

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
warning: literal out of range for i8
22
--> $DIR/type-overflow.rs:16:17
33
|
4-
16 | let error = 255i8; //~WARNING literal out of range for i8
4+
LL | let error = 255i8; //~WARNING literal out of range for i8
55
| ^^^^^
66
|
77
= note: #[warn(overflowing_literals)] on by default
88

99
warning: literal out of range for i8
1010
--> $DIR/type-overflow.rs:21:16
1111
|
12-
21 | let fail = 0b1000_0001i8; //~WARNING literal out of range for i8
12+
LL | let fail = 0b1000_0001i8; //~WARNING literal out of range for i8
1313
| ^^^^^^^^^^^^^ help: consider using `u8` instead: `0b1000_0001u8`
1414
|
1515
= note: the literal `0b1000_0001i8` (decimal `129`) does not fit into an `i8` and will become `-127i8`
1616

1717
warning: literal out of range for i64
1818
--> $DIR/type-overflow.rs:23:16
1919
|
20-
23 | let fail = 0x8000_0000_0000_0000i64; //~WARNING literal out of range for i64
20+
LL | let fail = 0x8000_0000_0000_0000i64; //~WARNING literal out of range for i64
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `u64` instead: `0x8000_0000_0000_0000u64`
2222
|
2323
= note: the literal `0x8000_0000_0000_0000i64` (decimal `9223372036854775808`) does not fit into an `i64` and will become `-9223372036854775808i64`
2424

2525
warning: literal out of range for u32
2626
--> $DIR/type-overflow.rs:25:16
2727
|
28-
25 | let fail = 0x1_FFFF_FFFFu32; //~WARNING literal out of range for u32
28+
LL | let fail = 0x1_FFFF_FFFFu32; //~WARNING literal out of range for u32
2929
| ^^^^^^^^^^^^^^^^ help: consider using `u64` instead: `0x1_FFFF_FFFFu64`
3030
|
3131
= note: the literal `0x1_FFFF_FFFFu32` (decimal `8589934591`) does not fit into an `u32` and will become `4294967295u32`
3232

3333
warning: literal out of range for i128
3434
--> $DIR/type-overflow.rs:27:22
3535
|
36-
27 | let fail: i128 = 0x8000_0000_0000_0000_0000_0000_0000_0000;
36+
LL | let fail: i128 = 0x8000_0000_0000_0000_0000_0000_0000_0000;
3737
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3838
|
3939
= note: the literal `0x8000_0000_0000_0000_0000_0000_0000_0000` (decimal `170141183460469231731687303715884105728`) does not fit into an `i128` and will become `-170141183460469231731687303715884105728i128`
@@ -42,7 +42,7 @@ warning: literal out of range for i128
4242
warning: literal out of range for i32
4343
--> $DIR/type-overflow.rs:30:16
4444
|
45-
30 | let fail = 0x8FFF_FFFF_FFFF_FFFE; //~WARNING literal out of range for i32
45+
LL | let fail = 0x8FFF_FFFF_FFFF_FFFE; //~WARNING literal out of range for i32
4646
| ^^^^^^^^^^^^^^^^^^^^^
4747
|
4848
= note: the literal `0x8FFF_FFFF_FFFF_FFFE` (decimal `10376293541461622782`) does not fit into an `i32` and will become `-2i32`
@@ -51,15 +51,15 @@ warning: literal out of range for i32
5151
warning: literal out of range for isize
5252
--> $DIR/type-overflow.rs:32:23
5353
|
54-
32 | let fail: isize = 0x8000_0000_0000_0000; //~WARNING literal out of range for isize
54+
LL | let fail: isize = 0x8000_0000_0000_0000; //~WARNING literal out of range for isize
5555
| ^^^^^^^^^^^^^^^^^^^^^
5656
|
5757
= note: the literal `0x8000_0000_0000_0000` (decimal `9223372036854775808`) does not fit into an `isize` and will become `-9223372036854775808isize`
5858

5959
warning: literal out of range for i8
6060
--> $DIR/type-overflow.rs:34:17
6161
|
62-
34 | let fail = -0b1111_1111i8; //~WARNING literal out of range for i8
62+
LL | let fail = -0b1111_1111i8; //~WARNING literal out of range for i8
6363
| ^^^^^^^^^^^^^ help: consider using `i16` instead: `0b1111_1111i16`
6464
|
6565
= note: the literal `0b1111_1111i8` (decimal `255`) does not fit into an `i8` and will become `-1i8`

0 commit comments

Comments
 (0)