2020-11-17 15:34:39 -06:00
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:15:12
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<()> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^---------------- help: try: `if Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:17:12
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(42) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^------------ help: try: `if Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:19:12
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(42) {
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^------------ help: try: `if Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:25:15
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | while let Ready(_) = Ready(42) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| ----------^^^^^^^^------------ help: try: `while Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:27:15
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | while let Pending = Ready(42) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| ----------^^^^^^^------------ help: try: `while Ready(42).is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:29:15
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | while let Pending = Pending::<()> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| ----------^^^^^^^---------------- help: try: `while Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:35:5
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | / match Ready(42) {
|
|
|
|
LL | | Ready(_) => true,
|
|
|
|
LL | | Pending => false,
|
|
|
|
LL | | };
|
2023-07-01 06:08:01 -05:00
|
|
|
| |_____^ help: try: `Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:40:5
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | / match Pending::<()> {
|
|
|
|
LL | | Ready(_) => false,
|
|
|
|
LL | | Pending => true,
|
|
|
|
LL | | };
|
2023-07-01 06:08:01 -05:00
|
|
|
| |_____^ help: try: `Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:45:13
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | let _ = match Pending::<()> {
|
|
|
|
| _____________^
|
|
|
|
LL | | Ready(_) => false,
|
|
|
|
LL | | Pending => true,
|
|
|
|
LL | | };
|
2023-07-01 06:08:01 -05:00
|
|
|
| |_____^ help: try: `Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:51:20
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
2020-11-24 19:01:05 -06:00
|
|
|
LL | let _ = if let Ready(_) = poll { true } else { false };
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^------- help: try: `if poll.is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:55:20
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | let _ = if let Ready(_) = gen_poll() {
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^------------- help: try: `if gen_poll().is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:57:19
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | } else if let Pending = gen_poll() {
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^------------- help: try: `if gen_poll().is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:73:12
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(42) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^------------ help: try: `if Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:75:12
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<()> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^---------------- help: try: `if Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:77:15
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | while let Ready(_) = Ready(42) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| ----------^^^^^^^^------------ help: try: `while Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:79:15
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | while let Pending = Pending::<()> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| ----------^^^^^^^---------------- help: try: `while Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:81:5
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | / match Ready(42) {
|
|
|
|
LL | | Ready(_) => true,
|
|
|
|
LL | | Pending => false,
|
|
|
|
LL | | };
|
2023-07-01 06:08:01 -05:00
|
|
|
| |_____^ help: try: `Ready(42).is_ready()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:86:5
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
|
LL | / match Pending::<()> {
|
|
|
|
LL | | Ready(_) => false,
|
|
|
|
LL | | Pending => true,
|
|
|
|
LL | | };
|
2023-07-01 06:08:01 -05:00
|
|
|
| |_____^ help: try: `Pending::<()>.is_pending()`
|
2020-11-17 15:34:39 -06:00
|
|
|
|
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|