@@ -51,170 +51,194 @@ LL | let _ = x.log(std::f64::consts::E);
5151error: ln(1 + x) can be computed more accurately
5252 --> $DIR/floating_point_log.rs:23:13
5353 |
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+ |
5466LL | let _ = (1.0 + x).ln();
5567 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
5668
5769error: ln(1 + x) can be computed more accurately
58- --> $DIR/floating_point_log.rs:24 :13
70+ --> $DIR/floating_point_log.rs:26 :13
5971 |
6072LL | let _ = (1.0 + x * 2.0).ln();
6173 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
6274
6375error: ln(1 + x) can be computed more accurately
64- --> $DIR/floating_point_log.rs:25 :13
76+ --> $DIR/floating_point_log.rs:27 :13
6577 |
6678LL | let _ = (1.0 + x.powi(2)).ln();
6779 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
6880
6981error: ln(1 + x) can be computed more accurately
70- --> $DIR/floating_point_log.rs:26 :13
82+ --> $DIR/floating_point_log.rs:28 :13
7183 |
7284LL | let _ = (1.0 + x.powi(2) * 2.0).ln();
7385 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(2) * 2.0).ln_1p()`
7486
7587error: ln(1 + x) can be computed more accurately
76- --> $DIR/floating_point_log.rs:27 :13
88+ --> $DIR/floating_point_log.rs:29 :13
7789 |
7890LL | let _ = (1.0 + (std::f32::consts::E - 1.0)).ln();
7991 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `((std::f32::consts::E - 1.0)).ln_1p()`
8092
8193error: ln(1 + x) can be computed more accurately
82- --> $DIR/floating_point_log.rs:28 :13
94+ --> $DIR/floating_point_log.rs:30 :13
8395 |
8496LL | let _ = (x + 1.0).ln();
8597 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
8698
8799error: ln(1 + x) can be computed more accurately
88- --> $DIR/floating_point_log.rs:29 :13
100+ --> $DIR/floating_point_log.rs:31 :13
89101 |
90102LL | let _ = (x.powi(2) + 1.0).ln();
91103 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
92104
93105error: ln(1 + x) can be computed more accurately
94- --> $DIR/floating_point_log.rs:30 :13
106+ --> $DIR/floating_point_log.rs:32 :13
95107 |
96108LL | let _ = (x + 2.0 + 1.0).ln();
97109 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 2.0).ln_1p()`
98110
99111error: ln(1 + x) can be computed more accurately
100- --> $DIR/floating_point_log.rs:31 :13
112+ --> $DIR/floating_point_log.rs:33 :13
101113 |
102114LL | let _ = (x * 2.0 + 1.0).ln();
103115 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
104116
105117error: 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
107131 |
108132LL | let _ = (1.0 + x).ln();
109133 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
110134
111135error: ln(1 + x) can be computed more accurately
112- --> $DIR/floating_point_log.rs:40 :13
136+ --> $DIR/floating_point_log.rs:44 :13
113137 |
114138LL | let _ = (1.0 + x * 2.0).ln();
115139 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
116140
117141error: ln(1 + x) can be computed more accurately
118- --> $DIR/floating_point_log.rs:41 :13
142+ --> $DIR/floating_point_log.rs:45 :13
119143 |
120144LL | let _ = (1.0 + x.powi(2)).ln();
121145 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
122146
123147error: ln(1 + x) can be computed more accurately
124- --> $DIR/floating_point_log.rs:42 :13
148+ --> $DIR/floating_point_log.rs:46 :13
125149 |
126150LL | let _ = (x + 1.0).ln();
127151 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()`
128152
129153error: ln(1 + x) can be computed more accurately
130- --> $DIR/floating_point_log.rs:43 :13
154+ --> $DIR/floating_point_log.rs:47 :13
131155 |
132156LL | let _ = (x.powi(2) + 1.0).ln();
133157 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2).ln_1p()`
134158
135159error: ln(1 + x) can be computed more accurately
136- --> $DIR/floating_point_log.rs:44 :13
160+ --> $DIR/floating_point_log.rs:48 :13
137161 |
138162LL | let _ = (x + 2.0 + 1.0).ln();
139163 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 2.0).ln_1p()`
140164
141165error: ln(1 + x) can be computed more accurately
142- --> $DIR/floating_point_log.rs:45 :13
166+ --> $DIR/floating_point_log.rs:49 :13
143167 |
144168LL | let _ = (x * 2.0 + 1.0).ln();
145169 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x * 2.0).ln_1p()`
146170
147171error: 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
149173 |
150174LL | let _ = x.log2() / y.log2();
151175 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
152176
153177error: 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
155179 |
156180LL | let _ = x.log10() / y.log10();
157181 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
158182
159183error: 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
161185 |
162186LL | let _ = x.ln() / y.ln();
163187 | ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
164188
165189error: 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
167191 |
168192LL | let _ = x.log(4.0) / y.log(4.0);
169193 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
170194
171195error: 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
173197 |
174198LL | let _ = x.log(b) / y.log(b);
175199 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
176200
177201error: 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
179203 |
180204LL | let _ = x.log(b) / 2f32.log(b);
181205 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log2()`
182206
183207error: 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
185209 |
186210LL | let _ = x.log2() / y.log2();
187211 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
188212
189213error: 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
191215 |
192216LL | let _ = x.log10() / y.log10();
193217 | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
194218
195219error: 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
197221 |
198222LL | let _ = x.ln() / y.ln();
199223 | ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
200224
201225error: 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
203227 |
204228LL | let _ = x.log(4.0) / y.log(4.0);
205229 | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
206230
207231error: 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
209233 |
210234LL | let _ = x.log(b) / y.log(b);
211235 | ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
212236
213237error: 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
215239 |
216240LL | let _ = x.log(b) / 2f64.log(b);
217241 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log2()`
218242
219- error: aborting due to 36 previous errors
243+ error: aborting due to 40 previous errors
220244
0 commit comments