@@ -77,14 +77,14 @@ LL | let _ = (1.0 + x / 2.0).ln();
7777error: ln(1 + x) can be computed more accurately
7878 --> $DIR/floating_point_log.rs:28:13
7979 |
80- LL | let _ = (1.0 + x.powi(2 )).ln();
81- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
80+ LL | let _ = (1.0 + x.powi(3 )).ln();
81+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
8282
8383error: ln(1 + x) can be computed more accurately
8484 --> $DIR/floating_point_log.rs:29:13
8585 |
86- LL | let _ = (1.0 + x.powi(2 ) / 2.0).ln();
87- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(2 ) / 2.0).ln_1p()`
86+ LL | let _ = (1.0 + x.powi(3 ) / 2.0).ln();
87+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(3 ) / 2.0).ln_1p()`
8888
8989error: ln(1 + x) can be computed more accurately
9090 --> $DIR/floating_point_log.rs:30:13
@@ -101,8 +101,8 @@ LL | let _ = (x + 1.0).ln();
101101error: ln(1 + x) can be computed more accurately
102102 --> $DIR/floating_point_log.rs:32:13
103103 |
104- LL | let _ = (x.powi(2 ) + 1.0).ln();
105- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
104+ LL | let _ = (x.powi(3 ) + 1.0).ln();
105+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
106106
107107error: ln(1 + x) can be computed more accurately
108108 --> $DIR/floating_point_log.rs:33:13
@@ -143,8 +143,8 @@ LL | let _ = (1.0 + x / 2.0).ln();
143143error: ln(1 + x) can be computed more accurately
144144 --> $DIR/floating_point_log.rs:46:13
145145 |
146- LL | let _ = (1.0 + x.powi(2 )).ln();
147- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
146+ LL | let _ = (1.0 + x.powi(3 )).ln();
147+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
148148
149149error: ln(1 + x) can be computed more accurately
150150 --> $DIR/floating_point_log.rs:47:13
@@ -155,8 +155,8 @@ LL | let _ = (x + 1.0).ln();
155155error: ln(1 + x) can be computed more accurately
156156 --> $DIR/floating_point_log.rs:48:13
157157 |
158- LL | let _ = (x.powi(2 ) + 1.0).ln();
159- | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(2 ).ln_1p()`
158+ LL | let _ = (x.powi(3 ) + 1.0).ln();
159+ | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3 ).ln_1p()`
160160
161161error: ln(1 + x) can be computed more accurately
162162 --> $DIR/floating_point_log.rs:49:13
0 commit comments