|
1 | | -error: casting i8 to i16 may become silently lossy if types change |
| 1 | +error: casting i8 to i16 may become silently lossy if you later change the type |
2 | 2 | --> $DIR/cast_lossless_integer.rs:8:5 |
3 | 3 | | |
4 | 4 | LL | 1i8 as i16; |
5 | 5 | | ^^^^^^^^^^ help: try: `i16::from(1i8)` |
6 | 6 | | |
7 | 7 | = note: `-D clippy::cast-lossless` implied by `-D warnings` |
8 | 8 |
|
9 | | -error: casting i8 to i32 may become silently lossy if types change |
| 9 | +error: casting i8 to i32 may become silently lossy if you later change the type |
10 | 10 | --> $DIR/cast_lossless_integer.rs:9:5 |
11 | 11 | | |
12 | 12 | LL | 1i8 as i32; |
13 | 13 | | ^^^^^^^^^^ help: try: `i32::from(1i8)` |
14 | 14 |
|
15 | | -error: casting i8 to i64 may become silently lossy if types change |
| 15 | +error: casting i8 to i64 may become silently lossy if you later change the type |
16 | 16 | --> $DIR/cast_lossless_integer.rs:10:5 |
17 | 17 | | |
18 | 18 | LL | 1i8 as i64; |
19 | 19 | | ^^^^^^^^^^ help: try: `i64::from(1i8)` |
20 | 20 |
|
21 | | -error: casting u8 to i16 may become silently lossy if types change |
| 21 | +error: casting u8 to i16 may become silently lossy if you later change the type |
22 | 22 | --> $DIR/cast_lossless_integer.rs:11:5 |
23 | 23 | | |
24 | 24 | LL | 1u8 as i16; |
25 | 25 | | ^^^^^^^^^^ help: try: `i16::from(1u8)` |
26 | 26 |
|
27 | | -error: casting u8 to i32 may become silently lossy if types change |
| 27 | +error: casting u8 to i32 may become silently lossy if you later change the type |
28 | 28 | --> $DIR/cast_lossless_integer.rs:12:5 |
29 | 29 | | |
30 | 30 | LL | 1u8 as i32; |
31 | 31 | | ^^^^^^^^^^ help: try: `i32::from(1u8)` |
32 | 32 |
|
33 | | -error: casting u8 to i64 may become silently lossy if types change |
| 33 | +error: casting u8 to i64 may become silently lossy if you later change the type |
34 | 34 | --> $DIR/cast_lossless_integer.rs:13:5 |
35 | 35 | | |
36 | 36 | LL | 1u8 as i64; |
37 | 37 | | ^^^^^^^^^^ help: try: `i64::from(1u8)` |
38 | 38 |
|
39 | | -error: casting u8 to u16 may become silently lossy if types change |
| 39 | +error: casting u8 to u16 may become silently lossy if you later change the type |
40 | 40 | --> $DIR/cast_lossless_integer.rs:14:5 |
41 | 41 | | |
42 | 42 | LL | 1u8 as u16; |
43 | 43 | | ^^^^^^^^^^ help: try: `u16::from(1u8)` |
44 | 44 |
|
45 | | -error: casting u8 to u32 may become silently lossy if types change |
| 45 | +error: casting u8 to u32 may become silently lossy if you later change the type |
46 | 46 | --> $DIR/cast_lossless_integer.rs:15:5 |
47 | 47 | | |
48 | 48 | LL | 1u8 as u32; |
49 | 49 | | ^^^^^^^^^^ help: try: `u32::from(1u8)` |
50 | 50 |
|
51 | | -error: casting u8 to u64 may become silently lossy if types change |
| 51 | +error: casting u8 to u64 may become silently lossy if you later change the type |
52 | 52 | --> $DIR/cast_lossless_integer.rs:16:5 |
53 | 53 | | |
54 | 54 | LL | 1u8 as u64; |
55 | 55 | | ^^^^^^^^^^ help: try: `u64::from(1u8)` |
56 | 56 |
|
57 | | -error: casting i16 to i32 may become silently lossy if types change |
| 57 | +error: casting i16 to i32 may become silently lossy if you later change the type |
58 | 58 | --> $DIR/cast_lossless_integer.rs:17:5 |
59 | 59 | | |
60 | 60 | LL | 1i16 as i32; |
61 | 61 | | ^^^^^^^^^^^ help: try: `i32::from(1i16)` |
62 | 62 |
|
63 | | -error: casting i16 to i64 may become silently lossy if types change |
| 63 | +error: casting i16 to i64 may become silently lossy if you later change the type |
64 | 64 | --> $DIR/cast_lossless_integer.rs:18:5 |
65 | 65 | | |
66 | 66 | LL | 1i16 as i64; |
67 | 67 | | ^^^^^^^^^^^ help: try: `i64::from(1i16)` |
68 | 68 |
|
69 | | -error: casting u16 to i32 may become silently lossy if types change |
| 69 | +error: casting u16 to i32 may become silently lossy if you later change the type |
70 | 70 | --> $DIR/cast_lossless_integer.rs:19:5 |
71 | 71 | | |
72 | 72 | LL | 1u16 as i32; |
73 | 73 | | ^^^^^^^^^^^ help: try: `i32::from(1u16)` |
74 | 74 |
|
75 | | -error: casting u16 to i64 may become silently lossy if types change |
| 75 | +error: casting u16 to i64 may become silently lossy if you later change the type |
76 | 76 | --> $DIR/cast_lossless_integer.rs:20:5 |
77 | 77 | | |
78 | 78 | LL | 1u16 as i64; |
79 | 79 | | ^^^^^^^^^^^ help: try: `i64::from(1u16)` |
80 | 80 |
|
81 | | -error: casting u16 to u32 may become silently lossy if types change |
| 81 | +error: casting u16 to u32 may become silently lossy if you later change the type |
82 | 82 | --> $DIR/cast_lossless_integer.rs:21:5 |
83 | 83 | | |
84 | 84 | LL | 1u16 as u32; |
85 | 85 | | ^^^^^^^^^^^ help: try: `u32::from(1u16)` |
86 | 86 |
|
87 | | -error: casting u16 to u64 may become silently lossy if types change |
| 87 | +error: casting u16 to u64 may become silently lossy if you later change the type |
88 | 88 | --> $DIR/cast_lossless_integer.rs:22:5 |
89 | 89 | | |
90 | 90 | LL | 1u16 as u64; |
91 | 91 | | ^^^^^^^^^^^ help: try: `u64::from(1u16)` |
92 | 92 |
|
93 | | -error: casting i32 to i64 may become silently lossy if types change |
| 93 | +error: casting i32 to i64 may become silently lossy if you later change the type |
94 | 94 | --> $DIR/cast_lossless_integer.rs:23:5 |
95 | 95 | | |
96 | 96 | LL | 1i32 as i64; |
97 | 97 | | ^^^^^^^^^^^ help: try: `i64::from(1i32)` |
98 | 98 |
|
99 | | -error: casting u32 to i64 may become silently lossy if types change |
| 99 | +error: casting u32 to i64 may become silently lossy if you later change the type |
100 | 100 | --> $DIR/cast_lossless_integer.rs:24:5 |
101 | 101 | | |
102 | 102 | LL | 1u32 as i64; |
103 | 103 | | ^^^^^^^^^^^ help: try: `i64::from(1u32)` |
104 | 104 |
|
105 | | -error: casting u32 to u64 may become silently lossy if types change |
| 105 | +error: casting u32 to u64 may become silently lossy if you later change the type |
106 | 106 | --> $DIR/cast_lossless_integer.rs:25:5 |
107 | 107 | | |
108 | 108 | LL | 1u32 as u64; |
109 | 109 | | ^^^^^^^^^^^ help: try: `u64::from(1u32)` |
110 | 110 |
|
111 | | -error: casting u8 to u16 may become silently lossy if types change |
| 111 | +error: casting u8 to u16 may become silently lossy if you later change the type |
112 | 112 | --> $DIR/cast_lossless_integer.rs:28:5 |
113 | 113 | | |
114 | 114 | LL | (1u8 + 1u8) as u16; |
|
0 commit comments