|
1 | 1 | error: this pattern matching can be expressed using equality
|
2 |
| - --> $DIR/equatable_if_let.rs:49:8 |
| 2 | + --> $DIR/equatable_if_let.rs:53:8 |
3 | 3 | |
|
4 | 4 | LL | if let 2 = a {}
|
5 | 5 | | ^^^^^^^^^ help: try: `a == 2`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::equatable-if-let` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: this pattern matching can be expressed using equality
|
10 |
| - --> $DIR/equatable_if_let.rs:50:8 |
| 10 | + --> $DIR/equatable_if_let.rs:54:8 |
11 | 11 | |
|
12 | 12 | LL | if let Ordering::Greater = a.cmp(&b) {}
|
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `a.cmp(&b) == Ordering::Greater`
|
14 | 14 |
|
15 | 15 | error: this pattern matching can be expressed using equality
|
16 |
| - --> $DIR/equatable_if_let.rs:51:8 |
| 16 | + --> $DIR/equatable_if_let.rs:55:8 |
17 | 17 | |
|
18 | 18 | LL | if let Some(2) = c {}
|
19 | 19 | | ^^^^^^^^^^^^^^^ help: try: `c == Some(2)`
|
20 | 20 |
|
21 | 21 | error: this pattern matching can be expressed using equality
|
22 |
| - --> $DIR/equatable_if_let.rs:52:8 |
| 22 | + --> $DIR/equatable_if_let.rs:56:8 |
23 | 23 | |
|
24 | 24 | LL | if let Struct { a: 2, b: false } = d {}
|
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `d == (Struct { a: 2, b: false })`
|
26 | 26 |
|
27 | 27 | error: this pattern matching can be expressed using equality
|
28 |
| - --> $DIR/equatable_if_let.rs:53:8 |
| 28 | + --> $DIR/equatable_if_let.rs:57:8 |
29 | 29 | |
|
30 | 30 | LL | if let Enum::TupleVariant(32, 64) = e {}
|
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `e == Enum::TupleVariant(32, 64)`
|
32 | 32 |
|
33 | 33 | error: this pattern matching can be expressed using equality
|
34 |
| - --> $DIR/equatable_if_let.rs:54:8 |
| 34 | + --> $DIR/equatable_if_let.rs:58:8 |
35 | 35 | |
|
36 | 36 | LL | if let Enum::RecordVariant { a: 64, b: 32 } = e {}
|
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `e == (Enum::RecordVariant { a: 64, b: 32 })`
|
38 | 38 |
|
39 | 39 | error: this pattern matching can be expressed using equality
|
40 |
| - --> $DIR/equatable_if_let.rs:55:8 |
| 40 | + --> $DIR/equatable_if_let.rs:59:8 |
41 | 41 | |
|
42 | 42 | LL | if let Enum::UnitVariant = e {}
|
43 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `e == Enum::UnitVariant`
|
44 | 44 |
|
45 | 45 | error: this pattern matching can be expressed using equality
|
46 |
| - --> $DIR/equatable_if_let.rs:56:8 |
| 46 | + --> $DIR/equatable_if_let.rs:60:8 |
47 | 47 | |
|
48 | 48 | LL | if let (Enum::UnitVariant, &Struct { a: 2, b: false }) = (e, &d) {}
|
49 | 49 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(e, &d) == (Enum::UnitVariant, &Struct { a: 2, b: false })`
|
50 | 50 |
|
51 | 51 | error: this pattern matching can be expressed using equality
|
52 |
| - --> $DIR/equatable_if_let.rs:66:8 |
| 52 | + --> $DIR/equatable_if_let.rs:70:8 |
53 | 53 | |
|
54 | 54 | LL | if let NotStructuralEq::A = g {}
|
55 | 55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `g == NotStructuralEq::A`
|
56 | 56 |
|
57 | 57 | error: this pattern matching can be expressed using equality
|
58 |
| - --> $DIR/equatable_if_let.rs:68:8 |
| 58 | + --> $DIR/equatable_if_let.rs:72:8 |
59 | 59 | |
|
60 | 60 | LL | if let Some(NotStructuralEq::A) = Some(g) {}
|
61 | 61 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Some(g) == Some(NotStructuralEq::A)`
|
62 | 62 |
|
63 | 63 | error: this pattern matching can be expressed using equality
|
64 |
| - --> $DIR/equatable_if_let.rs:75:8 |
| 64 | + --> $DIR/equatable_if_let.rs:79:8 |
65 | 65 | |
|
66 | 66 | LL | if let m1!(x) = "abc" {
|
67 | 67 | | ^^^^^^^^^^^^^^^^^^ help: try: `"abc" == m1!(x)`
|
|
0 commit comments