fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.1 KiB92 linesraw
1error: this pattern is unneeded as the `..` pattern can match that element
2  --> $DIR/unneeded_wildcard_pattern.rs:12:18
3   |
4LL |     if let (0, .., _) = t {};
5   |                  ^^^ help: remove it
6   |
7note: the lint level is defined here
8  --> $DIR/unneeded_wildcard_pattern.rs:3:9
9   |
10LL | #![deny(clippy::unneeded_wildcard_pattern)]
11   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: this pattern is unneeded as the `..` pattern can match that element
14  --> $DIR/unneeded_wildcard_pattern.rs:13:16
15   |
16LL |     if let (0, _, ..) = t {};
17   |                ^^^ help: remove it
18
19error: this pattern is unneeded as the `..` pattern can match that element
20  --> $DIR/unneeded_wildcard_pattern.rs:14:13
21   |
22LL |     if let (_, .., 0) = t {};
23   |             ^^^ help: remove it
24
25error: this pattern is unneeded as the `..` pattern can match that element
26  --> $DIR/unneeded_wildcard_pattern.rs:15:15
27   |
28LL |     if let (.., _, 0) = t {};
29   |               ^^^ help: remove it
30
31error: these patterns are unneeded as the `..` pattern can match those elements
32  --> $DIR/unneeded_wildcard_pattern.rs:16:16
33   |
34LL |     if let (0, _, _, ..) = t {};
35   |                ^^^^^^ help: remove them
36
37error: these patterns are unneeded as the `..` pattern can match those elements
38  --> $DIR/unneeded_wildcard_pattern.rs:17:18
39   |
40LL |     if let (0, .., _, _) = t {};
41   |                  ^^^^^^ help: remove them
42
43error: these patterns are unneeded as the `..` pattern can match those elements
44  --> $DIR/unneeded_wildcard_pattern.rs:26:22
45   |
46LL |         if let (0, .., _, _,) = t {};
47   |                      ^^^^^^ help: remove them
48
49error: this pattern is unneeded as the `..` pattern can match that element
50  --> $DIR/unneeded_wildcard_pattern.rs:33:19
51   |
52LL |     if let S(0, .., _) = s {};
53   |                   ^^^ help: remove it
54
55error: this pattern is unneeded as the `..` pattern can match that element
56  --> $DIR/unneeded_wildcard_pattern.rs:34:17
57   |
58LL |     if let S(0, _, ..) = s {};
59   |                 ^^^ help: remove it
60
61error: this pattern is unneeded as the `..` pattern can match that element
62  --> $DIR/unneeded_wildcard_pattern.rs:35:14
63   |
64LL |     if let S(_, .., 0) = s {};
65   |              ^^^ help: remove it
66
67error: this pattern is unneeded as the `..` pattern can match that element
68  --> $DIR/unneeded_wildcard_pattern.rs:36:16
69   |
70LL |     if let S(.., _, 0) = s {};
71   |                ^^^ help: remove it
72
73error: these patterns are unneeded as the `..` pattern can match those elements
74  --> $DIR/unneeded_wildcard_pattern.rs:37:17
75   |
76LL |     if let S(0, _, _, ..) = s {};
77   |                 ^^^^^^ help: remove them
78
79error: these patterns are unneeded as the `..` pattern can match those elements
80  --> $DIR/unneeded_wildcard_pattern.rs:38:19
81   |
82LL |     if let S(0, .., _, _) = s {};
83   |                   ^^^^^^ help: remove them
84
85error: these patterns are unneeded as the `..` pattern can match those elements
86  --> $DIR/unneeded_wildcard_pattern.rs:47:23
87   |
88LL |         if let S(0, .., _, _,) = s {};
89   |                       ^^^^^^ help: remove them
90
91error: aborting due to 14 previous errors
92