about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/double_comparison.stderr
blob: 984614c203eb6f6f48633278067362ec5de34453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:6:8
   |
LL |     if x == y || x < y {
   |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
   |
   = note: `-D clippy::double-comparisons` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::double_comparisons)]`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:10:8
   |
LL |     if x < y || x == y {
   |        ^^^^^^^^^^^^^^^ help: try: `x <= y`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:14:8
   |
LL |     if x == y || x > y {
   |        ^^^^^^^^^^^^^^^ help: try: `x >= y`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:18:8
   |
LL |     if x > y || x == y {
   |        ^^^^^^^^^^^^^^^ help: try: `x >= y`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:22:8
   |
LL |     if x < y || x > y {
   |        ^^^^^^^^^^^^^^ help: try: `x != y`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:26:8
   |
LL |     if x > y || x < y {
   |        ^^^^^^^^^^^^^^ help: try: `x != y`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:30:8
   |
LL |     if x <= y && x >= y {
   |        ^^^^^^^^^^^^^^^^ help: try: `x == y`

error: this binary expression can be simplified
  --> tests/ui/double_comparison.rs:34:8
   |
LL |     if x >= y && x <= y {
   |        ^^^^^^^^^^^^^^^^ help: try: `x == y`

error: aborting due to 8 previous errors