mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Always sort suggestions before emitting them
This commit is contained in:
parent
efef16f6ed
commit
f674e6f49c
1 changed files with 10 additions and 10 deletions
|
@ -50,10 +50,10 @@ LL | let _ = a == b && c == 5 && a == b;
|
|||
|
|
||||
help: try
|
||||
|
|
||||
LL | let _ = a == b && c == 5;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
LL | let _ = !(a != b || c != 5);
|
||||
| ~~~~~~~~~~~~~~~~~~~
|
||||
LL | let _ = a == b && c == 5;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
|
||||
error: this boolean expression can be simplified
|
||||
--> $DIR/nonminimal_bool.rs:28:13
|
||||
|
@ -63,10 +63,10 @@ LL | let _ = a == b || c == 5 || a == b;
|
|||
|
|
||||
help: try
|
||||
|
|
||||
LL | let _ = a == b || c == 5;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
LL | let _ = !(a != b && c != 5);
|
||||
| ~~~~~~~~~~~~~~~~~~~
|
||||
LL | let _ = a == b || c == 5;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
|
||||
error: this boolean expression can be simplified
|
||||
--> $DIR/nonminimal_bool.rs:29:13
|
||||
|
@ -76,10 +76,10 @@ LL | let _ = a == b && c == 5 && b == a;
|
|||
|
|
||||
help: try
|
||||
|
|
||||
LL | let _ = a == b && c == 5;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
LL | let _ = !(a != b || c != 5);
|
||||
| ~~~~~~~~~~~~~~~~~~~
|
||||
LL | let _ = a == b && c == 5;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
|
||||
error: this boolean expression can be simplified
|
||||
--> $DIR/nonminimal_bool.rs:30:13
|
||||
|
@ -89,10 +89,10 @@ LL | let _ = a != b || !(a != b || c == d);
|
|||
|
|
||||
help: try
|
||||
|
|
||||
LL | let _ = a != b || c != d;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
LL | let _ = !(a == b && c == d);
|
||||
| ~~~~~~~~~~~~~~~~~~~
|
||||
LL | let _ = a != b || c != d;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
|
||||
error: this boolean expression can be simplified
|
||||
--> $DIR/nonminimal_bool.rs:31:13
|
||||
|
@ -102,10 +102,10 @@ LL | let _ = a != b && !(a != b && c == d);
|
|||
|
|
||||
help: try
|
||||
|
|
||||
LL | let _ = a != b && c != d;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
LL | let _ = !(a == b || c == d);
|
||||
| ~~~~~~~~~~~~~~~~~~~
|
||||
LL | let _ = a != b && c != d;
|
||||
| ~~~~~~~~~~~~~~~~
|
||||
|
||||
error: aborting due to 12 previous errors
|
||||
|
||||
|
|
Loading…
Reference in a new issue