@@ -29,21 +29,21 @@ LL | let x1: i8 = 128;
2929 = help: consider using the type `u8` instead
3030
3131error: literal out of range for `i8`
32- --> $DIR/lint-type-overflow.rs:18:19
32+ --> $DIR/lint-type-overflow.rs:18:18
3333 |
3434LL | let x3: i8 = -129;
35- | ^^^
35+ | ^ ^^^
3636 |
37- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
37+ = note: the literal `- 129` does not fit into the type `i8` whose range is `-128..=127`
3838 = help: consider using the type `i16` instead
3939
4040error: literal out of range for `i8`
41- --> $DIR/lint-type-overflow.rs:19:19
41+ --> $DIR/lint-type-overflow.rs:19:18
4242 |
4343LL | let x3: i8 = -(129);
44- | ^^^^^
44+ | ^ ^^^^^
4545 |
46- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
46+ = note: the literal `-( 129) ` does not fit into the type `i8` whose range is `-128..=127`
4747 = help: consider using the type `i16` instead
4848
4949error: literal out of range for `i8`
@@ -74,12 +74,12 @@ LL | let x = 128_i8;
7474 = help: consider using the type `u8` instead
7575
7676error: literal out of range for `i8`
77- --> $DIR/lint-type-overflow.rs:28:14
77+ --> $DIR/lint-type-overflow.rs:28:13
7878 |
7979LL | let x = -129_i8;
80- | ^^^^^^
80+ | ^ ^^^^^^
8181 |
82- = note: the literal `129_i8` does not fit into the type `i8` whose range is `-128..=127`
82+ = note: the literal `- 129_i8` does not fit into the type `i8` whose range is `-128..=127`
8383 = help: consider using the type `i16` instead
8484
8585error: literal out of range for `i32`
@@ -101,21 +101,21 @@ LL | let x = 2147483648_i32;
101101 = help: consider using the type `u32` instead
102102
103103error: literal out of range for `i32`
104- --> $DIR/lint-type-overflow.rs:36:19
104+ --> $DIR/lint-type-overflow.rs:36:18
105105 |
106106LL | let x: i32 = -2147483649;
107- | ^^^^^^^^^^
107+ | ^ ^^^^^^^^^^
108108 |
109- = note: the literal `2147483649` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
109+ = note: the literal `- 2147483649` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
110110 = help: consider using the type `i64` instead
111111
112112error: literal out of range for `i32`
113- --> $DIR/lint-type-overflow.rs:37:14
113+ --> $DIR/lint-type-overflow.rs:37:13
114114 |
115115LL | let x = -2147483649_i32;
116- | ^^^^^^^^^^^^^^
116+ | ^ ^^^^^^^^^^^^^^
117117 |
118- = note: the literal `2147483649_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
118+ = note: the literal `- 2147483649_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
119119 = help: consider using the type `i64` instead
120120
121121error: literal out of range for `i32`
@@ -146,21 +146,21 @@ LL | let x = 18446744073709551615_i64;
146146 = help: consider using the type `u64` instead
147147
148148error: literal out of range for `i64`
149- --> $DIR/lint-type-overflow.rs:43:19
149+ --> $DIR/lint-type-overflow.rs:43:18
150150 |
151151LL | let x: i64 = -9223372036854775809;
152- | ^^^^^^^^^^^^^^^^^^^
152+ | ^ ^^^^^^^^^^^^^^^^^^^
153153 |
154- = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
154+ = note: the literal `- 9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
155155 = help: consider using the type `i128` instead
156156
157157error: literal out of range for `i64`
158- --> $DIR/lint-type-overflow.rs:44:14
158+ --> $DIR/lint-type-overflow.rs:44:13
159159 |
160160LL | let x = -9223372036854775809_i64;
161- | ^^^^^^^^^^^^^^^^^^^^^^^
161+ | ^ ^^^^^^^^^^^^^^^^^^^^^^^
162162 |
163- = note: the literal `9223372036854775809_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
163+ = note: the literal `- 9223372036854775809_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
164164 = help: consider using the type `i128` instead
165165
166166error: aborting due to 18 previous errors
0 commit comments