@@ -51,170 +51,194 @@ LL | let _ = x.log(std::f64::consts::E);
51
51
error: ln(1 + x) can be computed more accurately
52
52
--> $DIR/floating_point_log.rs:23:13
53
53
|
54
+ LL | let _ = (1f32 + 2.).ln();
55
+ | ^^^^^^^^^^^^^^^^ help: consider using: `2.0f32.ln_1p()`
56
+
57
+ error: ln(1 + x) can be computed more accurately
58
+ --> $DIR/floating_point_log.rs:24:13
59
+ |
60
+ LL | let _ = (1f32 + 2.0).ln();
61
+ | ^^^^^^^^^^^^^^^^^ help: consider using: `2.0f32.ln_1p()`
62
+
63
+ error: ln(1 + x) can be computed more accurately
64
+ --> $DIR/floating_point_log.rs:25:13
65
+ |
54
66
LL | let _ = (1.0 + x).ln();
55
67
| ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
56
68
57
69
error: ln(1 + x) can be computed more accurately
58
- --> $DIR/floating_point_log.rs:24 :13
70
+ --> $DIR/floating_point_log.rs:26 :13
59
71
|
60
72
LL | let _ = (1.0 + x * 2.0).ln();
61
73
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
62
74
63
75
error: ln(1 + x) can be computed more accurately
64
- --> $DIR/floating_point_log.rs:25 :13
76
+ --> $DIR/floating_point_log.rs:27 :13
65
77
|
66
78
LL | let _ = (1.0 + x.powi(2)).ln();
67
79
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
68
80
69
81
error: ln(1 + x) can be computed more accurately
70
- --> $DIR/floating_point_log.rs:26 :13
82
+ --> $DIR/floating_point_log.rs:28 :13
71
83
|
72
84
LL | let _ = (1.0 + x.powi(2) * 2.0).ln();
73
85
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(2) * 2.0).ln_1p()`
74
86
75
87
error: ln(1 + x) can be computed more accurately
76
- --> $DIR/floating_point_log.rs:27 :13
88
+ --> $DIR/floating_point_log.rs:29 :13
77
89
|
78
90
LL | let _ = (1.0 + (std::f32::consts::E - 1.0)).ln();
79
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `((std::f32::consts::E - 1.0)).ln_1p()`
80
92
81
93
error: ln(1 + x) can be computed more accurately
82
- --> $DIR/floating_point_log.rs:28 :13
94
+ --> $DIR/floating_point_log.rs:30 :13
83
95
|
84
96
LL | let _ = (x + 1.0).ln();
85
97
| ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
86
98
87
99
error: ln(1 + x) can be computed more accurately
88
- --> $DIR/floating_point_log.rs:29 :13
100
+ --> $DIR/floating_point_log.rs:31 :13
89
101
|
90
102
LL | let _ = (x.powi(2) + 1.0).ln();
91
103
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
92
104
93
105
error: ln(1 + x) can be computed more accurately
94
- --> $DIR/floating_point_log.rs:30 :13
106
+ --> $DIR/floating_point_log.rs:32 :13
95
107
|
96
108
LL | let _ = (x + 2.0 + 1.0).ln();
97
109
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 2.0).ln_1p()`
98
110
99
111
error: ln(1 + x) can be computed more accurately
100
- --> $DIR/floating_point_log.rs:31 :13
112
+ --> $DIR/floating_point_log.rs:33 :13
101
113
|
102
114
LL | let _ = (x * 2.0 + 1.0).ln();
103
115
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
104
116
105
117
error: ln(1 + x) can be computed more accurately
106
- --> $DIR/floating_point_log.rs:39:13
118
+ --> $DIR/floating_point_log.rs:41:13
119
+ |
120
+ LL | let _ = (1f64 + 2.).ln();
121
+ | ^^^^^^^^^^^^^^^^ help: consider using: `2.0f64.ln_1p()`
122
+
123
+ error: ln(1 + x) can be computed more accurately
124
+ --> $DIR/floating_point_log.rs:42:13
125
+ |
126
+ LL | let _ = (1f64 + 2.0).ln();
127
+ | ^^^^^^^^^^^^^^^^^ help: consider using: `2.0f64.ln_1p()`
128
+
129
+ error: ln(1 + x) can be computed more accurately
130
+ --> $DIR/floating_point_log.rs:43:13
107
131
|
108
132
LL | let _ = (1.0 + x).ln();
109
133
| ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
110
134
111
135
error: ln(1 + x) can be computed more accurately
112
- --> $DIR/floating_point_log.rs:40 :13
136
+ --> $DIR/floating_point_log.rs:44 :13
113
137
|
114
138
LL | let _ = (1.0 + x * 2.0).ln();
115
139
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
116
140
117
141
error: ln(1 + x) can be computed more accurately
118
- --> $DIR/floating_point_log.rs:41 :13
142
+ --> $DIR/floating_point_log.rs:45 :13
119
143
|
120
144
LL | let _ = (1.0 + x.powi(2)).ln();
121
145
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
122
146
123
147
error: ln(1 + x) can be computed more accurately
124
- --> $DIR/floating_point_log.rs:42 :13
148
+ --> $DIR/floating_point_log.rs:46 :13
125
149
|
126
150
LL | let _ = (x + 1.0).ln();
127
151
| ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
128
152
129
153
error: ln(1 + x) can be computed more accurately
130
- --> $DIR/floating_point_log.rs:43 :13
154
+ --> $DIR/floating_point_log.rs:47 :13
131
155
|
132
156
LL | let _ = (x.powi(2) + 1.0).ln();
133
157
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
134
158
135
159
error: ln(1 + x) can be computed more accurately
136
- --> $DIR/floating_point_log.rs:44 :13
160
+ --> $DIR/floating_point_log.rs:48 :13
137
161
|
138
162
LL | let _ = (x + 2.0 + 1.0).ln();
139
163
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 2.0).ln_1p()`
140
164
141
165
error: ln(1 + x) can be computed more accurately
142
- --> $DIR/floating_point_log.rs:45 :13
166
+ --> $DIR/floating_point_log.rs:49 :13
143
167
|
144
168
LL | let _ = (x * 2.0 + 1.0).ln();
145
169
| ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
146
170
147
171
error: x.log(b) / y.log(b) can be reduced to x.log(y)
148
- --> $DIR/floating_point_log.rs:58 :13
172
+ --> $DIR/floating_point_log.rs:62 :13
149
173
|
150
174
LL | let _ = x.log2() / y.log2();
151
175
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
152
176
153
177
error: x.log(b) / y.log(b) can be reduced to x.log(y)
154
- --> $DIR/floating_point_log.rs:59 :13
178
+ --> $DIR/floating_point_log.rs:63 :13
155
179
|
156
180
LL | let _ = x.log10() / y.log10();
157
181
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
158
182
159
183
error: x.log(b) / y.log(b) can be reduced to x.log(y)
160
- --> $DIR/floating_point_log.rs:60 :13
184
+ --> $DIR/floating_point_log.rs:64 :13
161
185
|
162
186
LL | let _ = x.ln() / y.ln();
163
187
| ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
164
188
165
189
error: x.log(b) / y.log(b) can be reduced to x.log(y)
166
- --> $DIR/floating_point_log.rs:61 :13
190
+ --> $DIR/floating_point_log.rs:65 :13
167
191
|
168
192
LL | let _ = x.log(4.0) / y.log(4.0);
169
193
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
170
194
171
195
error: x.log(b) / y.log(b) can be reduced to x.log(y)
172
- --> $DIR/floating_point_log.rs:62 :13
196
+ --> $DIR/floating_point_log.rs:66 :13
173
197
|
174
198
LL | let _ = x.log(b) / y.log(b);
175
199
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
176
200
177
201
error: x.log(b) / y.log(b) can be reduced to x.log(y)
178
- --> $DIR/floating_point_log.rs:64 :13
202
+ --> $DIR/floating_point_log.rs:68 :13
179
203
|
180
204
LL | let _ = x.log(b) / 2f32.log(b);
181
205
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log2()`
182
206
183
207
error: x.log(b) / y.log(b) can be reduced to x.log(y)
184
- --> $DIR/floating_point_log.rs:70 :13
208
+ --> $DIR/floating_point_log.rs:74 :13
185
209
|
186
210
LL | let _ = x.log2() / y.log2();
187
211
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
188
212
189
213
error: x.log(b) / y.log(b) can be reduced to x.log(y)
190
- --> $DIR/floating_point_log.rs:71 :13
214
+ --> $DIR/floating_point_log.rs:75 :13
191
215
|
192
216
LL | let _ = x.log10() / y.log10();
193
217
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
194
218
195
219
error: x.log(b) / y.log(b) can be reduced to x.log(y)
196
- --> $DIR/floating_point_log.rs:72 :13
220
+ --> $DIR/floating_point_log.rs:76 :13
197
221
|
198
222
LL | let _ = x.ln() / y.ln();
199
223
| ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
200
224
201
225
error: x.log(b) / y.log(b) can be reduced to x.log(y)
202
- --> $DIR/floating_point_log.rs:73 :13
226
+ --> $DIR/floating_point_log.rs:77 :13
203
227
|
204
228
LL | let _ = x.log(4.0) / y.log(4.0);
205
229
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
206
230
207
231
error: x.log(b) / y.log(b) can be reduced to x.log(y)
208
- --> $DIR/floating_point_log.rs:74 :13
232
+ --> $DIR/floating_point_log.rs:78 :13
209
233
|
210
234
LL | let _ = x.log(b) / y.log(b);
211
235
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
212
236
213
237
error: x.log(b) / y.log(b) can be reduced to x.log(y)
214
- --> $DIR/floating_point_log.rs:76 :13
238
+ --> $DIR/floating_point_log.rs:80 :13
215
239
|
216
240
LL | let _ = x.log(b) / 2f64.log(b);
217
241
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log2()`
218
242
219
- error: aborting due to 36 previous errors
243
+ error: aborting due to 40 previous errors
220
244
0 commit comments