]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/redundant_pattern_matching_poll.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / redundant_pattern_matching_poll.stderr
CommitLineData
f20569fa
XL
1error: redundant pattern matching, consider using `is_pending()`
2 --> $DIR/redundant_pattern_matching_poll.rs:10:12
3 |
4LL | if let Pending = Pending::<()> {}
5 | -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()`
6 |
7 = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
8
9error: redundant pattern matching, consider using `is_ready()`
10 --> $DIR/redundant_pattern_matching_poll.rs:12:12
11 |
12LL | if let Ready(_) = Ready(42) {}
13 | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
14
15error: redundant pattern matching, consider using `is_ready()`
16 --> $DIR/redundant_pattern_matching_poll.rs:14:12
17 |
18LL | if let Ready(_) = Ready(42) {
19 | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
20
21error: redundant pattern matching, consider using `is_ready()`
22 --> $DIR/redundant_pattern_matching_poll.rs:20:15
23 |
24LL | while let Ready(_) = Ready(42) {}
25 | ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()`
26
27error: redundant pattern matching, consider using `is_pending()`
28 --> $DIR/redundant_pattern_matching_poll.rs:22:15
29 |
30LL | while let Pending = Ready(42) {}
31 | ----------^^^^^^^------------ help: try this: `while Ready(42).is_pending()`
32
33error: redundant pattern matching, consider using `is_pending()`
34 --> $DIR/redundant_pattern_matching_poll.rs:24:15
35 |
36LL | while let Pending = Pending::<()> {}
37 | ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()`
38
39error: redundant pattern matching, consider using `is_ready()`
40 --> $DIR/redundant_pattern_matching_poll.rs:30:5
41 |
42LL | / match Ready(42) {
43LL | | Ready(_) => true,
44LL | | Pending => false,
45LL | | };
46 | |_____^ help: try this: `Ready(42).is_ready()`
47
48error: redundant pattern matching, consider using `is_pending()`
49 --> $DIR/redundant_pattern_matching_poll.rs:35:5
50 |
51LL | / match Pending::<()> {
52LL | | Ready(_) => false,
53LL | | Pending => true,
54LL | | };
55 | |_____^ help: try this: `Pending::<()>.is_pending()`
56
57error: redundant pattern matching, consider using `is_pending()`
58 --> $DIR/redundant_pattern_matching_poll.rs:40:13
59 |
60LL | let _ = match Pending::<()> {
61 | _____________^
62LL | | Ready(_) => false,
63LL | | Pending => true,
64LL | | };
65 | |_____^ help: try this: `Pending::<()>.is_pending()`
66
67error: redundant pattern matching, consider using `is_ready()`
68 --> $DIR/redundant_pattern_matching_poll.rs:46:20
69 |
70LL | let _ = if let Ready(_) = poll { true } else { false };
71 | -------^^^^^^^^------- help: try this: `if poll.is_ready()`
72
73error: redundant pattern matching, consider using `is_ready()`
74 --> $DIR/redundant_pattern_matching_poll.rs:50:20
75 |
76LL | let _ = if let Ready(_) = gen_poll() {
77 | -------^^^^^^^^------------- help: try this: `if gen_poll().is_ready()`
78
79error: redundant pattern matching, consider using `is_pending()`
80 --> $DIR/redundant_pattern_matching_poll.rs:52:19
81 |
82LL | } else if let Pending = gen_poll() {
83 | -------^^^^^^^------------- help: try this: `if gen_poll().is_pending()`
84
85error: redundant pattern matching, consider using `is_ready()`
86 --> $DIR/redundant_pattern_matching_poll.rs:68:12
87 |
88LL | if let Ready(_) = Ready(42) {}
89 | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
90
91error: redundant pattern matching, consider using `is_pending()`
92 --> $DIR/redundant_pattern_matching_poll.rs:70:12
93 |
94LL | if let Pending = Pending::<()> {}
95 | -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()`
96
97error: redundant pattern matching, consider using `is_ready()`
98 --> $DIR/redundant_pattern_matching_poll.rs:72:15
99 |
100LL | while let Ready(_) = Ready(42) {}
101 | ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()`
102
103error: redundant pattern matching, consider using `is_pending()`
104 --> $DIR/redundant_pattern_matching_poll.rs:74:15
105 |
106LL | while let Pending = Pending::<()> {}
107 | ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()`
108
109error: redundant pattern matching, consider using `is_ready()`
110 --> $DIR/redundant_pattern_matching_poll.rs:76:5
111 |
112LL | / match Ready(42) {
113LL | | Ready(_) => true,
114LL | | Pending => false,
115LL | | };
116 | |_____^ help: try this: `Ready(42).is_ready()`
117
118error: redundant pattern matching, consider using `is_pending()`
119 --> $DIR/redundant_pattern_matching_poll.rs:81:5
120 |
121LL | / match Pending::<()> {
122LL | | Ready(_) => false,
123LL | | Pending => true,
124LL | | };
125 | |_____^ help: try this: `Pending::<()>.is_pending()`
126
127error: aborting due to 18 previous errors
128