2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:6:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x == y || x < y {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::double-comparisons` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::double_comparisons)]`
|
2018-01-29 19:35:35 -06:00
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:9:8
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x < y || x == y {
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x <= y`
|
2018-01-29 19:35:35 -06:00
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:12:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x == y || x > y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:15:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x > y || x == y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `x >= y`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:18:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x < y || x > y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:21:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x > y || x < y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `x != y`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:24:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x <= y && x >= y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: this binary expression can be simplified
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/double_comparison.rs:27:8
|
2018-01-29 19:35:35 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | if x >= y && x <= y {
|
2018-01-29 19:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `x == y`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|