mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:14:8
|
|
|
|
|
14 | if x == y || x < y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
|
= note: `-D clippy::double-comparisons` implied by `-D warnings`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:17:8
|
|
|
|
|
17 | if x < y || x == y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:20:8
|
|
|
|
|
20 | if x == y || x > y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:23:8
|
|
|
|
|
23 | if x > y || x == y {
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:26:8
|
|
|
|
|
26 | if x < y || x > y {
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:29:8
|
|
|
|
|
29 | if x > y || x < y {
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:32:8
|
|
|
|
|
32 | if x <= y && x >= y {
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
error: This binary expression can be simplified
|
|
--> $DIR/double_comparison.rs:35:8
|
|
|
|
|
35 | if x >= y && x <= y {
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|