summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/float_arithmetic.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:44 +0000
commitc23a457e72abe608715ac76f076f47dc42af07a5 (patch)
tree2772049aaf84b5c9d0ed12ec8d86812f7a7904b6 /src/tools/clippy/tests/ui/float_arithmetic.stderr
parentReleasing progress-linux version 1.73.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-c23a457e72abe608715ac76f076f47dc42af07a5.tar.xz
rustc-c23a457e72abe608715ac76f076f47dc42af07a5.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/float_arithmetic.stderr')
-rw-r--r--src/tools/clippy/tests/ui/float_arithmetic.stderr33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/tools/clippy/tests/ui/float_arithmetic.stderr b/src/tools/clippy/tests/ui/float_arithmetic.stderr
index 1ceffb35b..da4ca9767 100644
--- a/src/tools/clippy/tests/ui/float_arithmetic.stderr
+++ b/src/tools/clippy/tests/ui/float_arithmetic.stderr
@@ -5,99 +5,100 @@ LL | f * 2.0;
| ^^^^^^^
|
= note: `-D clippy::float-arithmetic` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::float_arithmetic)]`
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:17:5
+ --> $DIR/float_arithmetic.rs:19:5
|
LL | 1.0 + f;
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:18:5
+ --> $DIR/float_arithmetic.rs:21:5
|
LL | f * 2.0;
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:19:5
+ --> $DIR/float_arithmetic.rs:23:5
|
LL | f / 2.0;
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:20:5
+ --> $DIR/float_arithmetic.rs:25:5
|
LL | f - 2.0 * 4.2;
| ^^^^^^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:21:5
+ --> $DIR/float_arithmetic.rs:27:5
|
LL | -f;
| ^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:23:5
+ --> $DIR/float_arithmetic.rs:30:5
|
LL | f += 1.0;
| ^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:24:5
+ --> $DIR/float_arithmetic.rs:32:5
|
LL | f -= 1.0;
| ^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:25:5
+ --> $DIR/float_arithmetic.rs:34:5
|
LL | f *= 2.0;
| ^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:26:5
+ --> $DIR/float_arithmetic.rs:36:5
|
LL | f /= 2.0;
| ^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:32:5
+ --> $DIR/float_arithmetic.rs:43:5
|
LL | 3.1_f32 + &1.2_f32;
| ^^^^^^^^^^^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:33:5
+ --> $DIR/float_arithmetic.rs:45:5
|
LL | &3.4_f32 + 1.5_f32;
| ^^^^^^^^^^^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:34:5
+ --> $DIR/float_arithmetic.rs:47:5
|
LL | &3.5_f32 + &1.3_f32;
| ^^^^^^^^^^^^^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:39:5
+ --> $DIR/float_arithmetic.rs:53:5
|
LL | a + f
| ^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:43:5
+ --> $DIR/float_arithmetic.rs:58:5
|
LL | f1 + f2
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:47:5
+ --> $DIR/float_arithmetic.rs:63:5
|
LL | f1 + f2
| ^^^^^^^
error: floating-point arithmetic detected
- --> $DIR/float_arithmetic.rs:51:5
+ --> $DIR/float_arithmetic.rs:68:5
|
LL | (&f1 + &f2)
| ^^^^^^^^^^^