|
1 | | -error: struct destructuring with rest (..) |
2 | | - --> tests/ui/rest_when_destructuring_struct.rs:37:9 |
| 1 | +error: struct destructuring with rest (`..`) |
| 2 | + --> tests/ui/rest_when_destructuring_struct.rs:31:9 |
3 | 3 | | |
4 | 4 | LL | let S { a, b, .. } = s; |
5 | 5 | | ^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::rest-when-destructuring-struct` implied by `-D warnings` |
8 | 8 | = help: to override `-D warnings` add `#[allow(clippy::rest_when_destructuring_struct)]` |
9 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 9 | +help: consider explicitly ignoring remaining fields with wildcard patterns (`x: _`) |
10 | 10 | | |
11 | 11 | LL - let S { a, b, .. } = s; |
12 | 12 | LL + let S { a, b, c: _ } = s; |
13 | 13 | | |
14 | 14 |
|
15 | | -error: struct destructuring with rest (..) |
16 | | - --> tests/ui/rest_when_destructuring_struct.rs:40:9 |
| 15 | +error: struct destructuring with rest (`..`) |
| 16 | + --> tests/ui/rest_when_destructuring_struct.rs:34:9 |
17 | 17 | | |
18 | 18 | LL | let S { a, b, c, .. } = s; |
19 | 19 | | ^^^^^^^^^^^^^^^^^ |
20 | 20 | | |
21 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 21 | +help: consider explicitly ignoring remaining fields with wildcard patterns (`x: _`) |
22 | 22 | | |
23 | 23 | LL - let S { a, b, c, .. } = s; |
24 | 24 | LL + let S { a, b, c, } = s; |
25 | 25 | | |
26 | 26 |
|
27 | | -error: struct destructuring with rest (..) |
28 | | - --> tests/ui/rest_when_destructuring_struct.rs:47:9 |
| 27 | +error: struct destructuring with rest (`..`) |
| 28 | + --> tests/ui/rest_when_destructuring_struct.rs:41:9 |
29 | 29 | | |
30 | 30 | LL | E::B { .. } => (), |
31 | 31 | | ^^^^^^^^^^^ |
32 | 32 | | |
33 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 33 | +help: consider explicitly ignoring fields with wildcard patterns (`x: _`) |
34 | 34 | | |
35 | 35 | LL - E::B { .. } => (), |
36 | 36 | LL + E::B { b1: _, b2: _ } => (), |
37 | 37 | | |
38 | 38 |
|
39 | | -error: struct destructuring with rest (..) |
40 | | - --> tests/ui/rest_when_destructuring_struct.rs:49:9 |
| 39 | +error: struct destructuring with rest (`..`) |
| 40 | + --> tests/ui/rest_when_destructuring_struct.rs:43:9 |
41 | 41 | | |
42 | 42 | LL | E::C { .. } => (), |
43 | 43 | | ^^^^^^^^^^^ |
44 | 44 | | |
45 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 45 | +help: consider remove rest pattern (`..`) |
46 | 46 | | |
47 | 47 | LL - E::C { .. } => (), |
48 | 48 | LL + E::C { } => (), |
49 | 49 | | |
50 | 50 |
|
51 | | -error: struct destructuring with rest (..) |
52 | | - --> tests/ui/rest_when_destructuring_struct.rs:55:9 |
| 51 | +error: struct destructuring with rest (`..`) |
| 52 | + --> tests/ui/rest_when_destructuring_struct.rs:49:9 |
53 | 53 | | |
54 | 54 | LL | E::B { b1: _, .. } => (), |
55 | 55 | | ^^^^^^^^^^^^^^^^^^ |
56 | 56 | | |
57 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 57 | +help: consider explicitly ignoring remaining fields with wildcard patterns (`x: _`) |
58 | 58 | | |
59 | 59 | LL - E::B { b1: _, .. } => (), |
60 | 60 | LL + E::B { b1: _, b2: _ } => (), |
61 | 61 | | |
62 | 62 |
|
63 | | -error: struct destructuring with rest (..) |
64 | | - --> tests/ui/rest_when_destructuring_struct.rs:72:9 |
| 63 | +error: struct destructuring with rest (`..`) |
| 64 | + --> tests/ui/rest_when_destructuring_struct.rs:66:9 |
65 | 65 | | |
66 | 66 | LL | let NonExhaustiveStruct { field1: _, .. } = ne; |
67 | 67 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
68 | 68 | | |
69 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 69 | +help: consider explicitly ignoring remaining fields with wildcard patterns (`x: _`) |
70 | 70 | | |
71 | 71 | LL | let NonExhaustiveStruct { field1: _, field2: _, .. } = ne; |
72 | 72 | | ++++++++++ |
73 | 73 |
|
74 | | -error: struct destructuring with rest (..) |
75 | | - --> tests/ui/rest_when_destructuring_struct.rs:82:9 |
| 74 | +error: struct destructuring with rest (`..`) |
| 75 | + --> tests/ui/rest_when_destructuring_struct.rs:76:9 |
76 | 76 | | |
77 | 77 | LL | let Sm { .. } = Sm::default(); |
78 | 78 | | ^^^^^^^^^ |
79 | 79 | | |
80 | | -help: consider explicitly ignoring remaining fields with wildcard patterns (x: _) |
| 80 | +help: consider explicitly ignoring fields with wildcard patterns (`x: _`) |
81 | 81 | | |
82 | 82 | LL | let Sm { a: _, b: _, .. } = Sm::default(); |
83 | 83 | | +++++++++++ |
|
0 commit comments