1- error: casting isize to i8 may truncate the value
1+ error: casting ` isize` to `i8` may truncate the value
22 --> $DIR/cast_size_32bit.rs:12:5
33 |
44LL | 1isize as i8;
@@ -14,7 +14,7 @@ LL | x0 as f64;
1414 |
1515 = note: `-D clippy::cast-precision-loss` implied by `-D warnings`
1616
17- error: casting isize to f64 may become silently lossy if you later change the type
17+ error: casting ` isize` to ` f64` may become silently lossy if you later change the type
1818 --> $DIR/cast_size_32bit.rs:15:5
1919 |
2020LL | x0 as f64;
@@ -28,7 +28,7 @@ error: casting usize to f64 causes a loss of precision on targets with 64-bit wi
2828LL | x1 as f64;
2929 | ^^^^^^^^^
3030
31- error: casting usize to f64 may become silently lossy if you later change the type
31+ error: casting ` usize` to ` f64` may become silently lossy if you later change the type
3232 --> $DIR/cast_size_32bit.rs:16:5
3333 |
3434LL | x1 as f64;
@@ -46,69 +46,69 @@ error: casting usize to f32 causes a loss of precision (usize is 32 or 64 bits w
4646LL | x1 as f32;
4747 | ^^^^^^^^^
4848
49- error: casting isize to i32 may truncate the value on targets with 64-bit wide pointers
49+ error: casting ` isize` to ` i32` may truncate the value on targets with 64-bit wide pointers
5050 --> $DIR/cast_size_32bit.rs:19:5
5151 |
5252LL | 1isize as i32;
5353 | ^^^^^^^^^^^^^
5454
55- error: casting isize to u32 may truncate the value on targets with 64-bit wide pointers
55+ error: casting ` isize` to ` u32` may truncate the value on targets with 64-bit wide pointers
5656 --> $DIR/cast_size_32bit.rs:20:5
5757 |
5858LL | 1isize as u32;
5959 | ^^^^^^^^^^^^^
6060
61- error: casting usize to u32 may truncate the value on targets with 64-bit wide pointers
61+ error: casting ` usize` to ` u32` may truncate the value on targets with 64-bit wide pointers
6262 --> $DIR/cast_size_32bit.rs:21:5
6363 |
6464LL | 1usize as u32;
6565 | ^^^^^^^^^^^^^
6666
67- error: casting usize to i32 may truncate the value on targets with 64-bit wide pointers
67+ error: casting ` usize` to ` i32` may truncate the value on targets with 64-bit wide pointers
6868 --> $DIR/cast_size_32bit.rs:22:5
6969 |
7070LL | 1usize as i32;
7171 | ^^^^^^^^^^^^^
7272
73- error: casting usize to i32 may wrap around the value on targets with 32-bit wide pointers
73+ error: casting ` usize` to ` i32` may wrap around the value on targets with 32-bit wide pointers
7474 --> $DIR/cast_size_32bit.rs:22:5
7575 |
7676LL | 1usize as i32;
7777 | ^^^^^^^^^^^^^
7878 |
7979 = note: `-D clippy::cast-possible-wrap` implied by `-D warnings`
8080
81- error: casting i64 to isize may truncate the value on targets with 32-bit wide pointers
81+ error: casting ` i64` to ` isize` may truncate the value on targets with 32-bit wide pointers
8282 --> $DIR/cast_size_32bit.rs:24:5
8383 |
8484LL | 1i64 as isize;
8585 | ^^^^^^^^^^^^^
8686
87- error: casting i64 to usize may truncate the value on targets with 32-bit wide pointers
87+ error: casting ` i64` to ` usize` may truncate the value on targets with 32-bit wide pointers
8888 --> $DIR/cast_size_32bit.rs:25:5
8989 |
9090LL | 1i64 as usize;
9191 | ^^^^^^^^^^^^^
9292
93- error: casting u64 to isize may truncate the value on targets with 32-bit wide pointers
93+ error: casting ` u64` to ` isize` may truncate the value on targets with 32-bit wide pointers
9494 --> $DIR/cast_size_32bit.rs:26:5
9595 |
9696LL | 1u64 as isize;
9797 | ^^^^^^^^^^^^^
9898
99- error: casting u64 to isize may wrap around the value on targets with 64-bit wide pointers
99+ error: casting ` u64` to ` isize` may wrap around the value on targets with 64-bit wide pointers
100100 --> $DIR/cast_size_32bit.rs:26:5
101101 |
102102LL | 1u64 as isize;
103103 | ^^^^^^^^^^^^^
104104
105- error: casting u64 to usize may truncate the value on targets with 32-bit wide pointers
105+ error: casting ` u64` to ` usize` may truncate the value on targets with 32-bit wide pointers
106106 --> $DIR/cast_size_32bit.rs:27:5
107107 |
108108LL | 1u64 as usize;
109109 | ^^^^^^^^^^^^^
110110
111- error: casting u32 to isize may wrap around the value on targets with 32-bit wide pointers
111+ error: casting ` u32` to ` isize` may wrap around the value on targets with 32-bit wide pointers
112112 --> $DIR/cast_size_32bit.rs:28:5
113113 |
114114LL | 1u32 as isize;
@@ -120,7 +120,7 @@ error: casting i32 to f32 causes a loss of precision (i32 is 32 bits wide, but f
120120LL | 999_999_999 as f32;
121121 | ^^^^^^^^^^^^^^^^^^
122122
123- error: casting integer literal to f64 is unnecessary
123+ error: casting integer literal to ` f64` is unnecessary
124124 --> $DIR/cast_size_32bit.rs:34:5
125125 |
126126LL | 3_999_999_999usize as f64;
0 commit comments