summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/comparison_chain.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/comparison_chain.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/comparison_chain.stderr')
-rw-r--r--src/tools/clippy/tests/ui/comparison_chain.stderr35
1 files changed, 19 insertions, 16 deletions
diff --git a/src/tools/clippy/tests/ui/comparison_chain.stderr b/src/tools/clippy/tests/ui/comparison_chain.stderr
index 2eeb50202..3b41dcf55 100644
--- a/src/tools/clippy/tests/ui/comparison_chain.stderr
+++ b/src/tools/clippy/tests/ui/comparison_chain.stderr
@@ -2,6 +2,7 @@ error: `if` chain can be rewritten with `match`
--> $DIR/comparison_chain.rs:14:5
|
LL | / if x > y {
+LL | |
LL | | a()
LL | | } else if x < y {
LL | | b()
@@ -10,15 +11,16 @@ LL | | }
|
= help: consider rewriting the `if` chain to use `cmp` and `match`
= note: `-D clippy::comparison-chain` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::comparison_chain)]`
error: `if` chain can be rewritten with `match`
- --> $DIR/comparison_chain.rs:27:5
+ --> $DIR/comparison_chain.rs:28:5
|
LL | / if x > y {
+LL | |
LL | | a()
LL | | } else if x < y {
-LL | | b()
-LL | | } else {
+... |
LL | | c()
LL | | }
| |_____^
@@ -26,13 +28,13 @@ LL | | }
= help: consider rewriting the `if` chain to use `cmp` and `match`
error: `if` chain can be rewritten with `match`
- --> $DIR/comparison_chain.rs:35:5
+ --> $DIR/comparison_chain.rs:37:5
|
LL | / if x > y {
+LL | |
LL | | a()
LL | | } else if y > x {
-LL | | b()
-LL | | } else {
+... |
LL | | c()
LL | | }
| |_____^
@@ -40,13 +42,13 @@ LL | | }
= help: consider rewriting the `if` chain to use `cmp` and `match`
error: `if` chain can be rewritten with `match`
- --> $DIR/comparison_chain.rs:43:5
+ --> $DIR/comparison_chain.rs:46:5
|
LL | / if x > 1 {
+LL | |
LL | | a()
LL | | } else if x < 1 {
-LL | | b()
-LL | | } else if x == 1 {
+... |
LL | | c()
LL | | }
| |_____^
@@ -54,9 +56,10 @@ LL | | }
= help: consider rewriting the `if` chain to use `cmp` and `match`
error: `if` chain can be rewritten with `match`
- --> $DIR/comparison_chain.rs:117:5
+ --> $DIR/comparison_chain.rs:121:5
|
LL | / if x > y {
+LL | |
LL | | a()
LL | | } else if x < y {
LL | | b()
@@ -66,13 +69,13 @@ LL | | }
= help: consider rewriting the `if` chain to use `cmp` and `match`
error: `if` chain can be rewritten with `match`
- --> $DIR/comparison_chain.rs:123:5
+ --> $DIR/comparison_chain.rs:128:5
|
LL | / if x > y {
+LL | |
LL | | a()
LL | | } else if x < y {
-LL | | b()
-LL | | } else {
+... |
LL | | c()
LL | | }
| |_____^
@@ -80,13 +83,13 @@ LL | | }
= help: consider rewriting the `if` chain to use `cmp` and `match`
error: `if` chain can be rewritten with `match`
- --> $DIR/comparison_chain.rs:131:5
+ --> $DIR/comparison_chain.rs:137:5
|
LL | / if x > y {
+LL | |
LL | | a()
LL | | } else if y > x {
-LL | | b()
-LL | | } else {
+... |
LL | | c()
LL | | }
| |_____^