1 error: redundant pattern matching, consider using `is_pending()`
2 --> $DIR/redundant_pattern_matching_poll.rs:10:12
4 LL | if let Pending = Pending::<()> {}
5 | -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()`
7 = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
9 error: redundant pattern matching, consider using `is_ready()`
10 --> $DIR/redundant_pattern_matching_poll.rs:12:12
12 LL | if let Ready(_) = Ready(42) {}
13 | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
15 error: redundant pattern matching, consider using `is_ready()`
16 --> $DIR/redundant_pattern_matching_poll.rs:14:12
18 LL | if let Ready(_) = Ready(42) {
19 | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
21 error: redundant pattern matching, consider using `is_ready()`
22 --> $DIR/redundant_pattern_matching_poll.rs:20:15
24 LL | while let Ready(_) = Ready(42) {}
25 | ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()`
27 error: redundant pattern matching, consider using `is_pending()`
28 --> $DIR/redundant_pattern_matching_poll.rs:22:15
30 LL | while let Pending = Ready(42) {}
31 | ----------^^^^^^^------------ help: try this: `while Ready(42).is_pending()`
33 error: redundant pattern matching, consider using `is_pending()`
34 --> $DIR/redundant_pattern_matching_poll.rs:24:15
36 LL | while let Pending = Pending::<()> {}
37 | ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()`
39 error: redundant pattern matching, consider using `is_ready()`
40 --> $DIR/redundant_pattern_matching_poll.rs:30:5
42 LL | / match Ready(42) {
43 LL | | Ready(_) => true,
44 LL | | Pending => false,
46 | |_____^ help: try this: `Ready(42).is_ready()`
48 error: redundant pattern matching, consider using `is_pending()`
49 --> $DIR/redundant_pattern_matching_poll.rs:35:5
51 LL | / match Pending::<()> {
52 LL | | Ready(_) => false,
53 LL | | Pending => true,
55 | |_____^ help: try this: `Pending::<()>.is_pending()`
57 error: redundant pattern matching, consider using `is_pending()`
58 --> $DIR/redundant_pattern_matching_poll.rs:40:13
60 LL | let _ = match Pending::<()> {
62 LL | | Ready(_) => false,
63 LL | | Pending => true,
65 | |_____^ help: try this: `Pending::<()>.is_pending()`
67 error: redundant pattern matching, consider using `is_ready()`
68 --> $DIR/redundant_pattern_matching_poll.rs:46:20
70 LL | let _ = if let Ready(_) = poll { true } else { false };
71 | -------^^^^^^^^------- help: try this: `if poll.is_ready()`
73 error: redundant pattern matching, consider using `is_ready()`
74 --> $DIR/redundant_pattern_matching_poll.rs:50:20
76 LL | let _ = if let Ready(_) = gen_poll() {
77 | -------^^^^^^^^------------- help: try this: `if gen_poll().is_ready()`
79 error: redundant pattern matching, consider using `is_pending()`
80 --> $DIR/redundant_pattern_matching_poll.rs:52:19
82 LL | } else if let Pending = gen_poll() {
83 | -------^^^^^^^------------- help: try this: `if gen_poll().is_pending()`
85 error: redundant pattern matching, consider using `is_ready()`
86 --> $DIR/redundant_pattern_matching_poll.rs:68:12
88 LL | if let Ready(_) = Ready(42) {}
89 | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
91 error: redundant pattern matching, consider using `is_pending()`
92 --> $DIR/redundant_pattern_matching_poll.rs:70:12
94 LL | if let Pending = Pending::<()> {}
95 | -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()`
97 error: redundant pattern matching, consider using `is_ready()`
98 --> $DIR/redundant_pattern_matching_poll.rs:72:15
100 LL | while let Ready(_) = Ready(42) {}
101 | ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()`
103 error: redundant pattern matching, consider using `is_pending()`
104 --> $DIR/redundant_pattern_matching_poll.rs:74:15
106 LL | while let Pending = Pending::<()> {}
107 | ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()`
109 error: redundant pattern matching, consider using `is_ready()`
110 --> $DIR/redundant_pattern_matching_poll.rs:76:5
112 LL | / match Ready(42) {
113 LL | | Ready(_) => true,
114 LL | | Pending => false,
116 | |_____^ help: try this: `Ready(42).is_ready()`
118 error: redundant pattern matching, consider using `is_pending()`
119 --> $DIR/redundant_pattern_matching_poll.rs:81:5
121 LL | / match Pending::<()> {
122 LL | | Ready(_) => false,
123 LL | | Pending => true,
125 | |_____^ help: try this: `Pending::<()>.is_pending()`
127 error: aborting due to 18 previous errors