|
1 | 1 | error: integer arithmetic detected |
2 | | - --> $DIR/arithmetic.rs:13:5 |
| 2 | + --> $DIR/arithmetic.rs:15:5 |
3 | 3 | | |
4 | 4 | LL | 1 + i; |
5 | 5 | | ^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::integer-arithmetic` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: integer arithmetic detected |
10 | | - --> $DIR/arithmetic.rs:14:5 |
| 10 | + --> $DIR/arithmetic.rs:16:5 |
11 | 11 | | |
12 | 12 | LL | i * 2; |
13 | 13 | | ^^^^^ |
14 | 14 |
|
15 | 15 | error: integer arithmetic detected |
16 | | - --> $DIR/arithmetic.rs:15:5 |
| 16 | + --> $DIR/arithmetic.rs:17:5 |
17 | 17 | | |
18 | 18 | LL | / 1 % |
19 | 19 | LL | | i / 2; // no error, this is part of the expression in the preceding line |
20 | 20 | | |_________^ |
21 | 21 |
|
22 | 22 | error: integer arithmetic detected |
23 | | - --> $DIR/arithmetic.rs:17:5 |
| 23 | + --> $DIR/arithmetic.rs:19:5 |
24 | 24 | | |
25 | 25 | LL | i - 2 + 2 - i; |
26 | 26 | | ^^^^^^^^^^^^^ |
27 | 27 |
|
28 | 28 | error: integer arithmetic detected |
29 | | - --> $DIR/arithmetic.rs:18:5 |
| 29 | + --> $DIR/arithmetic.rs:20:5 |
30 | 30 | | |
31 | 31 | LL | -i; |
32 | 32 | | ^^ |
33 | 33 |
|
34 | 34 | error: integer arithmetic detected |
35 | | - --> $DIR/arithmetic.rs:30:5 |
| 35 | + --> $DIR/arithmetic.rs:32:5 |
36 | 36 | | |
37 | 37 | LL | i += 1; |
38 | 38 | | ^^^^^^ |
39 | 39 |
|
40 | 40 | error: integer arithmetic detected |
41 | | - --> $DIR/arithmetic.rs:31:5 |
| 41 | + --> $DIR/arithmetic.rs:33:5 |
42 | 42 | | |
43 | 43 | LL | i -= 1; |
44 | 44 | | ^^^^^^ |
45 | 45 |
|
46 | 46 | error: integer arithmetic detected |
47 | | - --> $DIR/arithmetic.rs:32:5 |
| 47 | + --> $DIR/arithmetic.rs:34:5 |
48 | 48 | | |
49 | 49 | LL | i *= 2; |
50 | 50 | | ^^^^^^ |
51 | 51 |
|
52 | 52 | error: integer arithmetic detected |
53 | | - --> $DIR/arithmetic.rs:33:5 |
| 53 | + --> $DIR/arithmetic.rs:35:5 |
54 | 54 | | |
55 | 55 | LL | i /= 2; |
56 | 56 | | ^^^^^^ |
57 | 57 |
|
58 | 58 | error: integer arithmetic detected |
59 | | - --> $DIR/arithmetic.rs:34:5 |
| 59 | + --> $DIR/arithmetic.rs:36:5 |
60 | 60 | | |
61 | 61 | LL | i %= 2; |
62 | 62 | | ^^^^^^ |
63 | 63 |
|
64 | 64 | error: floating-point arithmetic detected |
65 | | - --> $DIR/arithmetic.rs:45:5 |
| 65 | + --> $DIR/arithmetic.rs:47:5 |
66 | 66 | | |
67 | 67 | LL | f * 2.0; |
68 | 68 | | ^^^^^^^ |
69 | 69 | | |
70 | 70 | = note: `-D clippy::float-arithmetic` implied by `-D warnings` |
71 | 71 |
|
72 | 72 | error: floating-point arithmetic detected |
73 | | - --> $DIR/arithmetic.rs:47:5 |
| 73 | + --> $DIR/arithmetic.rs:49:5 |
74 | 74 | | |
75 | 75 | LL | 1.0 + f; |
76 | 76 | | ^^^^^^^ |
77 | 77 |
|
78 | 78 | error: floating-point arithmetic detected |
79 | | - --> $DIR/arithmetic.rs:48:5 |
| 79 | + --> $DIR/arithmetic.rs:50:5 |
80 | 80 | | |
81 | 81 | LL | f * 2.0; |
82 | 82 | | ^^^^^^^ |
83 | 83 |
|
84 | 84 | error: floating-point arithmetic detected |
85 | | - --> $DIR/arithmetic.rs:49:5 |
| 85 | + --> $DIR/arithmetic.rs:51:5 |
86 | 86 | | |
87 | 87 | LL | f / 2.0; |
88 | 88 | | ^^^^^^^ |
89 | 89 |
|
90 | 90 | error: floating-point arithmetic detected |
91 | | - --> $DIR/arithmetic.rs:50:5 |
| 91 | + --> $DIR/arithmetic.rs:52:5 |
92 | 92 | | |
93 | 93 | LL | f - 2.0 * 4.2; |
94 | 94 | | ^^^^^^^^^^^^^ |
95 | 95 |
|
96 | 96 | error: floating-point arithmetic detected |
97 | | - --> $DIR/arithmetic.rs:51:5 |
| 97 | + --> $DIR/arithmetic.rs:53:5 |
98 | 98 | | |
99 | 99 | LL | -f; |
100 | 100 | | ^^ |
101 | 101 |
|
102 | 102 | error: floating-point arithmetic detected |
103 | | - --> $DIR/arithmetic.rs:53:5 |
| 103 | + --> $DIR/arithmetic.rs:55:5 |
104 | 104 | | |
105 | 105 | LL | f += 1.0; |
106 | 106 | | ^^^^^^^^ |
107 | 107 |
|
108 | 108 | error: floating-point arithmetic detected |
109 | | - --> $DIR/arithmetic.rs:54:5 |
| 109 | + --> $DIR/arithmetic.rs:56:5 |
110 | 110 | | |
111 | 111 | LL | f -= 1.0; |
112 | 112 | | ^^^^^^^^ |
113 | 113 |
|
114 | 114 | error: floating-point arithmetic detected |
115 | | - --> $DIR/arithmetic.rs:55:5 |
| 115 | + --> $DIR/arithmetic.rs:57:5 |
116 | 116 | | |
117 | 117 | LL | f *= 2.0; |
118 | 118 | | ^^^^^^^^ |
119 | 119 |
|
120 | 120 | error: floating-point arithmetic detected |
121 | | - --> $DIR/arithmetic.rs:56:5 |
| 121 | + --> $DIR/arithmetic.rs:58:5 |
122 | 122 | | |
123 | 123 | LL | f /= 2.0; |
124 | 124 | | ^^^^^^^^ |
125 | 125 |
|
126 | | -error: aborting due to 20 previous errors |
| 126 | +error: integer arithmetic detected |
| 127 | + --> $DIR/arithmetic.rs:101:5 |
| 128 | + | |
| 129 | +LL | 3 + &1; |
| 130 | + | ^^^^^^ |
| 131 | + |
| 132 | +error: integer arithmetic detected |
| 133 | + --> $DIR/arithmetic.rs:102:5 |
| 134 | + | |
| 135 | +LL | &3 + 1; |
| 136 | + | ^^^^^^ |
| 137 | + |
| 138 | +error: integer arithmetic detected |
| 139 | + --> $DIR/arithmetic.rs:103:5 |
| 140 | + | |
| 141 | +LL | &3 + &1; |
| 142 | + | ^^^^^^^ |
| 143 | + |
| 144 | +error: integer arithmetic detected |
| 145 | + --> $DIR/arithmetic.rs:108:5 |
| 146 | + | |
| 147 | +LL | a + x |
| 148 | + | ^^^^^ |
| 149 | + |
| 150 | +error: integer arithmetic detected |
| 151 | + --> $DIR/arithmetic.rs:112:5 |
| 152 | + | |
| 153 | +LL | x + y |
| 154 | + | ^^^^^ |
| 155 | + |
| 156 | +error: integer arithmetic detected |
| 157 | + --> $DIR/arithmetic.rs:116:5 |
| 158 | + | |
| 159 | +LL | x + y |
| 160 | + | ^^^^^ |
| 161 | + |
| 162 | +error: integer arithmetic detected |
| 163 | + --> $DIR/arithmetic.rs:120:5 |
| 164 | + | |
| 165 | +LL | (&x + &y) |
| 166 | + | ^^^^^^^^^ |
| 167 | + |
| 168 | +error: floating-point arithmetic detected |
| 169 | + --> $DIR/arithmetic.rs:126:5 |
| 170 | + | |
| 171 | +LL | 3.1_f32 + &1.2_f32; |
| 172 | + | ^^^^^^^^^^^^^^^^^^ |
| 173 | + |
| 174 | +error: floating-point arithmetic detected |
| 175 | + --> $DIR/arithmetic.rs:127:5 |
| 176 | + | |
| 177 | +LL | &3.4_f32 + 1.5_f32; |
| 178 | + | ^^^^^^^^^^^^^^^^^^ |
| 179 | + |
| 180 | +error: floating-point arithmetic detected |
| 181 | + --> $DIR/arithmetic.rs:128:5 |
| 182 | + | |
| 183 | +LL | &3.5_f32 + &1.3_f32; |
| 184 | + | ^^^^^^^^^^^^^^^^^^^ |
| 185 | + |
| 186 | +error: floating-point arithmetic detected |
| 187 | + --> $DIR/arithmetic.rs:133:5 |
| 188 | + | |
| 189 | +LL | a + f |
| 190 | + | ^^^^^ |
| 191 | + |
| 192 | +error: floating-point arithmetic detected |
| 193 | + --> $DIR/arithmetic.rs:137:5 |
| 194 | + | |
| 195 | +LL | f1 + f2 |
| 196 | + | ^^^^^^^ |
| 197 | + |
| 198 | +error: floating-point arithmetic detected |
| 199 | + --> $DIR/arithmetic.rs:141:5 |
| 200 | + | |
| 201 | +LL | f1 + f2 |
| 202 | + | ^^^^^^^ |
| 203 | + |
| 204 | +error: floating-point arithmetic detected |
| 205 | + --> $DIR/arithmetic.rs:145:5 |
| 206 | + | |
| 207 | +LL | (&f1 + &f2) |
| 208 | + | ^^^^^^^^^^^ |
| 209 | + |
| 210 | +error: aborting due to 34 previous errors |
127 | 211 |
|
0 commit comments