fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: logarithm for bases 2, 10 and e can be computed more accurately 2 --> $DIR/floating_point_log.rs:9:13 3 | 4LL | let _ = x.log(2f32); 5 | ^^^^^^^^^^^ help: consider using: `x.log2()` 6 | 7 = note: `-D clippy::suboptimal-flops` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::suboptimal_flops)]` 9 10error: logarithm for bases 2, 10 and e can be computed more accurately 11 --> $DIR/floating_point_log.rs:10:13 12 | 13LL | let _ = x.log(10f32); 14 | ^^^^^^^^^^^^ help: consider using: `x.log10()` 15 16error: logarithm for bases 2, 10 and e can be computed more accurately 17 --> $DIR/floating_point_log.rs:11:13 18 | 19LL | let _ = x.log(std::f32::consts::E); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.ln()` 21 22error: logarithm for bases 2, 10 and e can be computed more accurately 23 --> $DIR/floating_point_log.rs:12:13 24 | 25LL | let _ = x.log(TWO); 26 | ^^^^^^^^^^ help: consider using: `x.log2()` 27 28error: logarithm for bases 2, 10 and e can be computed more accurately 29 --> $DIR/floating_point_log.rs:13:13 30 | 31LL | let _ = x.log(E); 32 | ^^^^^^^^ help: consider using: `x.ln()` 33 34error: logarithm for bases 2, 10 and e can be computed more accurately 35 --> $DIR/floating_point_log.rs:14:13 36 | 37LL | let _ = (x as f32).log(2f32); 38 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).log2()` 39 40error: logarithm for bases 2, 10 and e can be computed more accurately 41 --> $DIR/floating_point_log.rs:17:13 42 | 43LL | let _ = x.log(2f64); 44 | ^^^^^^^^^^^ help: consider using: `x.log2()` 45 46error: logarithm for bases 2, 10 and e can be computed more accurately 47 --> $DIR/floating_point_log.rs:18:13 48 | 49LL | let _ = x.log(10f64); 50 | ^^^^^^^^^^^^ help: consider using: `x.log10()` 51 52error: logarithm for bases 2, 10 and e can be computed more accurately 53 --> $DIR/floating_point_log.rs:19:13 54 | 55LL | let _ = x.log(std::f64::consts::E); 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.ln()` 57 58error: ln(1 + x) can be computed more accurately 59 --> $DIR/floating_point_log.rs:24:13 60 | 61LL | let _ = (1f32 + 2.).ln(); 62 | ^^^^^^^^^^^^^^^^ help: consider using: `2.0f32.ln_1p()` 63 | 64 = note: `-D clippy::imprecise-flops` implied by `-D warnings` 65 = help: to override `-D warnings` add `#[allow(clippy::imprecise_flops)]` 66 67error: ln(1 + x) can be computed more accurately 68 --> $DIR/floating_point_log.rs:25:13 69 | 70LL | let _ = (1f32 + 2.0).ln(); 71 | ^^^^^^^^^^^^^^^^^ help: consider using: `2.0f32.ln_1p()` 72 73error: ln(1 + x) can be computed more accurately 74 --> $DIR/floating_point_log.rs:26:13 75 | 76LL | let _ = (1.0 + x).ln(); 77 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()` 78 79error: ln(1 + x) can be computed more accurately 80 --> $DIR/floating_point_log.rs:27:13 81 | 82LL | let _ = (1.0 + x / 2.0).ln(); 83 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x / 2.0).ln_1p()` 84 85error: ln(1 + x) can be computed more accurately 86 --> $DIR/floating_point_log.rs:28:13 87 | 88LL | let _ = (1.0 + x.powi(3)).ln(); 89 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3).ln_1p()` 90 91error: ln(1 + x) can be computed more accurately 92 --> $DIR/floating_point_log.rs:29:13 93 | 94LL | let _ = (1.0 + x.powi(3) / 2.0).ln(); 95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x.powi(3) / 2.0).ln_1p()` 96 97error: ln(1 + x) can be computed more accurately 98 --> $DIR/floating_point_log.rs:30:13 99 | 100LL | let _ = (1.0 + (std::f32::consts::E - 1.0)).ln(); 101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(std::f32::consts::E - 1.0).ln_1p()` 102 103error: ln(1 + x) can be computed more accurately 104 --> $DIR/floating_point_log.rs:31:13 105 | 106LL | let _ = (x + 1.0).ln(); 107 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()` 108 109error: ln(1 + x) can be computed more accurately 110 --> $DIR/floating_point_log.rs:32:13 111 | 112LL | let _ = (x.powi(3) + 1.0).ln(); 113 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3).ln_1p()` 114 115error: ln(1 + x) can be computed more accurately 116 --> $DIR/floating_point_log.rs:33:13 117 | 118LL | let _ = (x + 2.0 + 1.0).ln(); 119 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 2.0).ln_1p()` 120 121error: ln(1 + x) can be computed more accurately 122 --> $DIR/floating_point_log.rs:34:13 123 | 124LL | let _ = (x / 2.0 + 1.0).ln(); 125 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x / 2.0).ln_1p()` 126 127error: ln(1 + x) can be computed more accurately 128 --> $DIR/floating_point_log.rs:42:13 129 | 130LL | let _ = (1f64 + 2.).ln(); 131 | ^^^^^^^^^^^^^^^^ help: consider using: `2.0f64.ln_1p()` 132 133error: ln(1 + x) can be computed more accurately 134 --> $DIR/floating_point_log.rs:43:13 135 | 136LL | let _ = (1f64 + 2.0).ln(); 137 | ^^^^^^^^^^^^^^^^^ help: consider using: `2.0f64.ln_1p()` 138 139error: ln(1 + x) can be computed more accurately 140 --> $DIR/floating_point_log.rs:44:13 141 | 142LL | let _ = (1.0 + x).ln(); 143 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()` 144 145error: ln(1 + x) can be computed more accurately 146 --> $DIR/floating_point_log.rs:45:13 147 | 148LL | let _ = (1.0 + x / 2.0).ln(); 149 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x / 2.0).ln_1p()` 150 151error: ln(1 + x) can be computed more accurately 152 --> $DIR/floating_point_log.rs:46:13 153 | 154LL | let _ = (1.0 + x.powi(3)).ln(); 155 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3).ln_1p()` 156 157error: ln(1 + x) can be computed more accurately 158 --> $DIR/floating_point_log.rs:47:13 159 | 160LL | let _ = (x + 1.0).ln(); 161 | ^^^^^^^^^^^^^^ help: consider using: `x.ln_1p()` 162 163error: ln(1 + x) can be computed more accurately 164 --> $DIR/floating_point_log.rs:48:13 165 | 166LL | let _ = (x.powi(3) + 1.0).ln(); 167 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.powi(3).ln_1p()` 168 169error: ln(1 + x) can be computed more accurately 170 --> $DIR/floating_point_log.rs:49:13 171 | 172LL | let _ = (x + 2.0 + 1.0).ln(); 173 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 2.0).ln_1p()` 174 175error: ln(1 + x) can be computed more accurately 176 --> $DIR/floating_point_log.rs:50:13 177 | 178LL | let _ = (x / 2.0 + 1.0).ln(); 179 | ^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x / 2.0).ln_1p()` 180 181error: aborting due to 29 previous errors 182