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