You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/cast_size.64bit.stderr
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ LL - 1isize as i8;
13
13
LL + i8::try_from(1isize);
14
14
|
15
15
16
-
error: casting `isize` to `f32` causes a loss of precision (`isize` is 32 or 64 bits wide, but `f32`'s mantissa is only 23 bits wide)
16
+
error: casting `isize` to `f32` may cause a loss of precision (`isize` can be up to 64 bits wide depending on the target architecture, but `f32`'s mantissa is only 23 bits wide)
17
17
--> tests/ui/cast_size.rs:24:5
18
18
|
19
19
LL | x0 as f32;
@@ -22,19 +22,19 @@ LL | x0 as f32;
22
22
= note: `-D clippy::cast-precision-loss` implied by `-D warnings`
23
23
= help: to override `-D warnings` add `#[allow(clippy::cast_precision_loss)]`
24
24
25
-
error: casting `usize` to `f32` causes a loss of precision (`usize` is 32 or 64 bits wide, but `f32`'s mantissa is only 23 bits wide)
25
+
error: casting `usize` to `f32` may cause a loss of precision (`usize` can be up to 64 bits wide depending on the target architecture, but `f32`'s mantissa is only 23 bits wide)
26
26
--> tests/ui/cast_size.rs:26:5
27
27
|
28
28
LL | x1 as f32;
29
29
| ^^^^^^^^^
30
30
31
-
error: casting `isize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`isize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
31
+
error: casting `isize` to `f64` may cause a loss of precision (`isize` can be up to 64 bits wide depending on the target architecture, but `f64`'s mantissa is only 52 bits wide)
32
32
--> tests/ui/cast_size.rs:28:5
33
33
|
34
34
LL | x0 as f64;
35
35
| ^^^^^^^^^
36
36
37
-
error: casting `usize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`usize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
37
+
error: casting `usize` to `f64` may cause a loss of precision (`usize` can be up to 64 bits wide depending on the target architecture, but `f64`'s mantissa is only 52 bits wide)
38
38
--> tests/ui/cast_size.rs:30:5
39
39
|
40
40
LL | x1 as f64;
@@ -165,13 +165,13 @@ error: casting `u32` to `isize` may wrap around the value on targets with 32-bit
165
165
LL | 1u32 as isize;
166
166
| ^^^^^^^^^^^^^
167
167
168
-
error: casting `i32` to `f32` causes a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
168
+
error: casting `i32` to `f32` may cause a loss of precision (`i32` is 32 bits wide, but `f32`'s mantissa is only 23 bits wide)
169
169
--> tests/ui/cast_size.rs:61:5
170
170
|
171
171
LL | 999_999_999 as f32;
172
172
| ^^^^^^^^^^^^^^^^^^
173
173
174
-
error: casting `usize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`usize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide)
174
+
error: casting `usize` to `f64` may cause a loss of precision (`usize` can be up to 64 bits wide depending on the target architecture, but `f64`'s mantissa is only 52 bits wide)
0 commit comments