]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/double_comparison.stderr
bump version to 1.81.0+dfsg1-2~bpo12+pve1
[rustc.git] / src / tools / clippy / tests / ui / double_comparison.stderr
CommitLineData
f20569fa 1error: this binary expression can be simplified
c620b35d 2 --> tests/ui/double_comparison.rs:6:8
f20569fa
XL
3 |
4LL | if x == y || x < y {
5 | ^^^^^^^^^^^^^^^ help: try: `x <= y`
6 |
7 = note: `-D clippy::double-comparisons` implied by `-D warnings`
781aab86 8 = help: to override `-D warnings` add `#[allow(clippy::double_comparisons)]`
f20569fa
XL
9
10error: this binary expression can be simplified
c620b35d 11 --> tests/ui/double_comparison.rs:9:8
f20569fa
XL
12 |
13LL | if x < y || x == y {
14 | ^^^^^^^^^^^^^^^ help: try: `x <= y`
15
16error: this binary expression can be simplified
c620b35d 17 --> tests/ui/double_comparison.rs:12:8
f20569fa
XL
18 |
19LL | if x == y || x > y {
20 | ^^^^^^^^^^^^^^^ help: try: `x >= y`
21
22error: this binary expression can be simplified
c620b35d 23 --> tests/ui/double_comparison.rs:15:8
f20569fa
XL
24 |
25LL | if x > y || x == y {
26 | ^^^^^^^^^^^^^^^ help: try: `x >= y`
27
28error: this binary expression can be simplified
c620b35d 29 --> tests/ui/double_comparison.rs:18:8
f20569fa
XL
30 |
31LL | if x < y || x > y {
32 | ^^^^^^^^^^^^^^ help: try: `x != y`
33
34error: this binary expression can be simplified
c620b35d 35 --> tests/ui/double_comparison.rs:21:8
f20569fa
XL
36 |
37LL | if x > y || x < y {
38 | ^^^^^^^^^^^^^^ help: try: `x != y`
39
40error: this binary expression can be simplified
c620b35d 41 --> tests/ui/double_comparison.rs:24:8
f20569fa
XL
42 |
43LL | if x <= y && x >= y {
44 | ^^^^^^^^^^^^^^^^ help: try: `x == y`
45
46error: this binary expression can be simplified
c620b35d 47 --> tests/ui/double_comparison.rs:27:8
f20569fa
XL
48 |
49LL | if x >= y && x <= y {
50 | ^^^^^^^^^^^^^^^^ help: try: `x == y`
51
52error: aborting due to 8 previous errors
53