]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/match_bool.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / match_bool.stderr
index d0c20eb2696b93804a982c065df56cc239c70814..1ad78c740c68bf104e9b3fd8a6e9fc1b84cc6703 100644 (file)
@@ -1,5 +1,5 @@
 error: this boolean expression can be simplified
-  --> $DIR/match_bool.rs:29:11
+  --> $DIR/match_bool.rs:31:11
    |
 LL |     match test && test {
    |           ^^^^^^^^^^^^ help: try: `test`
@@ -7,7 +7,7 @@ LL |     match test && test {
    = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
 
 error: you seem to be trying to match on a boolean expression
-  --> $DIR/match_bool.rs:4:5
+  --> $DIR/match_bool.rs:6:5
    |
 LL | /     match test {
 LL | |         true => 0,
@@ -15,10 +15,14 @@ LL | |         false => 42,
 LL | |     };
    | |_____^ help: consider using an `if`/`else` expression: `if test { 0 } else { 42 }`
    |
-   = note: `-D clippy::match-bool` implied by `-D warnings`
+note: the lint level is defined here
+  --> $DIR/match_bool.rs:1:9
+   |
+LL | #![deny(clippy::match_bool)]
+   |         ^^^^^^^^^^^^^^^^^^
 
 error: you seem to be trying to match on a boolean expression
-  --> $DIR/match_bool.rs:10:5
+  --> $DIR/match_bool.rs:12:5
    |
 LL | /     match option == 1 {
 LL | |         true => 1,
@@ -27,7 +31,7 @@ LL | |     };
    | |_____^ help: consider using an `if`/`else` expression: `if option == 1 { 1 } else { 0 }`
 
 error: you seem to be trying to match on a boolean expression
-  --> $DIR/match_bool.rs:15:5
+  --> $DIR/match_bool.rs:17:5
    |
 LL | /     match test {
 LL | |         true => (),
@@ -45,7 +49,7 @@ LL |     };
    |
 
 error: you seem to be trying to match on a boolean expression
-  --> $DIR/match_bool.rs:22:5
+  --> $DIR/match_bool.rs:24:5
    |
 LL | /     match test {
 LL | |         false => {
@@ -63,7 +67,7 @@ LL |     };
    |
 
 error: you seem to be trying to match on a boolean expression
-  --> $DIR/match_bool.rs:29:5
+  --> $DIR/match_bool.rs:31:5
    |
 LL | /     match test && test {
 LL | |         false => {
@@ -81,7 +85,7 @@ LL |     };
    |
 
 error: equal expressions as operands to `&&`
-  --> $DIR/match_bool.rs:29:11
+  --> $DIR/match_bool.rs:31:11
    |
 LL |     match test && test {
    |           ^^^^^^^^^^^^
@@ -89,7 +93,7 @@ LL |     match test && test {
    = note: `#[deny(clippy::eq_op)]` on by default
 
 error: you seem to be trying to match on a boolean expression
-  --> $DIR/match_bool.rs:36:5
+  --> $DIR/match_bool.rs:38:5
    |
 LL | /     match test {
 LL | |         false => {