|
1 | 1 | error: Unnecessary `With` Filter
|
2 | 2 | --> $DIR/unnecessary_with.rs:10:34
|
3 | 3 | |
|
4 |
| -LL | fn test_query1(_query: Query<&A, With<A>>) {} |
| 4 | +LL | fn test_query1(_query: Query<&A, With<A>>) { |
5 | 5 | | ^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D unnecessary-with` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: Unnecessary `With` Filter
|
10 |
| - --> $DIR/unnecessary_with.rs:11:40 |
| 10 | + --> $DIR/unnecessary_with.rs:13:40 |
11 | 11 | |
|
12 |
| -LL | fn test_query2(_query: Query<(&A, &B), With<A>>) {} |
| 12 | +LL | fn test_query2(_query: Query<(&A, &B), With<A>>) { |
13 | 13 | | ^^^^^^^
|
14 | 14 |
|
15 | 15 | error: Unnecessary `With` Filter
|
16 |
| - --> $DIR/unnecessary_with.rs:12:40 |
| 16 | + --> $DIR/unnecessary_with.rs:16:40 |
17 | 17 | |
|
18 |
| -LL | fn test_query3(_query: Query<(&A, &B), With<B>>) {} |
| 18 | +LL | fn test_query3(_query: Query<(&A, &B), With<B>>) { |
19 | 19 | | ^^^^^^^
|
20 | 20 |
|
21 | 21 | error: Unnecessary `With` Filter
|
22 |
| - --> $DIR/unnecessary_with.rs:13:41 |
| 22 | + --> $DIR/unnecessary_with.rs:19:41 |
23 | 23 | |
|
24 |
| -LL | fn test_query4(_query: Query<(&A, &B), (With<A>, With<B>)>) {} |
| 24 | +LL | fn test_query4(_query: Query<(&A, &B), (With<A>, With<B>)>) { |
25 | 25 | | ^^^^^^^
|
26 | 26 |
|
27 | 27 | error: Unnecessary `With` Filter
|
28 |
| - --> $DIR/unnecessary_with.rs:13:50 |
| 28 | + --> $DIR/unnecessary_with.rs:19:50 |
29 | 29 | |
|
30 |
| -LL | fn test_query4(_query: Query<(&A, &B), (With<A>, With<B>)>) {} |
| 30 | +LL | fn test_query4(_query: Query<(&A, &B), (With<A>, With<B>)>) { |
31 | 31 | | ^^^^^^^
|
32 | 32 |
|
33 | 33 | error: Unnecessary `With` Filter
|
34 |
| - --> $DIR/unnecessary_with.rs:14:41 |
| 34 | + --> $DIR/unnecessary_with.rs:22:41 |
35 | 35 | |
|
36 |
| -LL | fn test_query5(_query: Query<(&A, &B), (With<A>, With<C>)>) {} |
| 36 | +LL | fn test_query5(_query: Query<(&A, &B), (With<A>, With<C>)>) { |
37 | 37 | | ^^^^^^^
|
38 | 38 |
|
39 | 39 | error: Unnecessary `With` Filter
|
40 |
| - --> $DIR/unnecessary_with.rs:15:35 |
| 40 | + --> $DIR/unnecessary_with.rs:25:35 |
41 | 41 | |
|
42 |
| -LL | fn test_query6(_query: Query<&A, (With<A>, With<B>)>) {} |
| 42 | +LL | fn test_query6(_query: Query<&A, (With<A>, With<B>)>) { |
43 | 43 | | ^^^^^^^
|
44 | 44 |
|
45 | 45 | error: Unnecessary `With` Filter
|
46 |
| - --> $DIR/unnecessary_with.rs:17:38 |
| 46 | + --> $DIR/unnecessary_with.rs:29:38 |
47 | 47 | |
|
48 |
| -LL | fn test_query7(_query: Query<&mut A, With<A>>) {} |
| 48 | +LL | fn test_query7(_query: Query<&mut A, With<A>>) { |
49 | 49 | | ^^^^^^^
|
50 | 50 |
|
51 | 51 | error: Unnecessary `With` Filter
|
52 |
| - --> $DIR/unnecessary_with.rs:18:44 |
| 52 | + --> $DIR/unnecessary_with.rs:32:44 |
53 | 53 | |
|
54 |
| -LL | fn test_query8(_query: Query<(&mut A, &B), With<A>>) {} |
| 54 | +LL | fn test_query8(_query: Query<(&mut A, &B), With<A>>) { |
55 | 55 | | ^^^^^^^
|
56 | 56 |
|
57 | 57 | error: Unnecessary `With` Filter
|
58 |
| - --> $DIR/unnecessary_with.rs:19:44 |
| 58 | + --> $DIR/unnecessary_with.rs:35:44 |
59 | 59 | |
|
60 |
| -LL | fn test_query9(_query: Query<(&mut A, &B), With<B>>) {} |
| 60 | +LL | fn test_query9(_query: Query<(&mut A, &B), With<B>>) { |
61 | 61 | | ^^^^^^^
|
62 | 62 |
|
63 | 63 | error: Unnecessary `With` Filter
|
64 |
| - --> $DIR/unnecessary_with.rs:20:46 |
| 64 | + --> $DIR/unnecessary_with.rs:38:46 |
65 | 65 | |
|
66 |
| -LL | fn test_query10(_query: Query<(&mut A, &B), (With<A>, With<B>)>) {} |
| 66 | +LL | fn test_query10(_query: Query<(&mut A, &B), (With<A>, With<B>)>) { |
67 | 67 | | ^^^^^^^
|
68 | 68 |
|
69 | 69 | error: Unnecessary `With` Filter
|
70 |
| - --> $DIR/unnecessary_with.rs:20:55 |
| 70 | + --> $DIR/unnecessary_with.rs:38:55 |
71 | 71 | |
|
72 |
| -LL | fn test_query10(_query: Query<(&mut A, &B), (With<A>, With<B>)>) {} |
| 72 | +LL | fn test_query10(_query: Query<(&mut A, &B), (With<A>, With<B>)>) { |
73 | 73 | | ^^^^^^^
|
74 | 74 |
|
75 | 75 | error: Unnecessary `With` Filter
|
76 |
| - --> $DIR/unnecessary_with.rs:21:46 |
| 76 | + --> $DIR/unnecessary_with.rs:41:46 |
77 | 77 | |
|
78 |
| -LL | fn test_query11(_query: Query<(&mut A, &B), (With<A>, With<C>)>) {} |
| 78 | +LL | fn test_query11(_query: Query<(&mut A, &B), (With<A>, With<C>)>) { |
79 | 79 | | ^^^^^^^
|
80 | 80 |
|
81 | 81 | error: Unnecessary `With` Filter
|
82 |
| - --> $DIR/unnecessary_with.rs:22:40 |
| 82 | + --> $DIR/unnecessary_with.rs:44:40 |
83 | 83 | |
|
84 |
| -LL | fn test_query12(_query: Query<&mut A, (With<A>, With<B>)>) {} |
| 84 | +LL | fn test_query12(_query: Query<&mut A, (With<A>, With<B>)>) { |
85 | 85 | | ^^^^^^^
|
86 | 86 |
|
87 | 87 | error: Unnecessary `With` Filter
|
88 |
| - --> $DIR/unnecessary_with.rs:24:46 |
| 88 | + --> $DIR/unnecessary_with.rs:48:46 |
89 | 89 | |
|
90 |
| -LL | fn test_query13(_query: Query<(), (Added<A>, With<A>)>) {} |
| 90 | +LL | fn test_query13(_query: Query<(), (Added<A>, With<A>)>) { |
91 | 91 | | ^^^^^^^
|
92 | 92 |
|
93 | 93 | error: Unnecessary `With` Filter
|
94 |
| - --> $DIR/unnecessary_with.rs:25:48 |
| 94 | + --> $DIR/unnecessary_with.rs:51:48 |
95 | 95 | |
|
96 |
| -LL | fn test_query14(_query: Query<(), (Changed<A>, With<A>)>) {} |
| 96 | +LL | fn test_query14(_query: Query<(), (Changed<A>, With<A>)>) { |
97 | 97 | | ^^^^^^^
|
98 | 98 |
|
99 | 99 | error: Unnecessary `With` Filter
|
100 |
| - --> $DIR/unnecessary_with.rs:27:39 |
| 100 | + --> $DIR/unnecessary_with.rs:55:39 |
101 | 101 | |
|
102 |
| -LL | fn test_query15(_query: Query<&A, Or<(With<A>, With<B>)>>) {} |
| 102 | +LL | fn test_query15(_query: Query<&A, Or<(With<A>, With<B>)>>) { |
103 | 103 | | ^^^^^^^
|
104 | 104 |
|
105 | 105 | error: Unnecessary `With` Filter
|
106 |
| - --> $DIR/unnecessary_with.rs:28:48 |
| 106 | + --> $DIR/unnecessary_with.rs:58:48 |
107 | 107 | |
|
108 |
| -LL | fn test_query16(_query: Query<&B, Or<(With<A>, With<B>)>>) {} |
| 108 | +LL | fn test_query16(_query: Query<&B, Or<(With<A>, With<B>)>>) { |
109 | 109 | | ^^^^^^^
|
110 | 110 |
|
111 | 111 | error: Unnecessary `With` Filter
|
112 |
| - --> $DIR/unnecessary_with.rs:30:43 |
| 112 | + --> $DIR/unnecessary_with.rs:62:43 |
113 | 113 | |
|
114 |
| -LL | fn test_query17(_query: Query<&mut A, Or<(With<A>, With<B>)>>) {} |
| 114 | +LL | fn test_query17(_query: Query<&mut A, Or<(With<A>, With<B>)>>) { |
115 | 115 | | ^^^^^^^
|
116 | 116 |
|
117 | 117 | error: Unnecessary `With` Filter
|
118 |
| - --> $DIR/unnecessary_with.rs:31:52 |
| 118 | + --> $DIR/unnecessary_with.rs:65:52 |
119 | 119 | |
|
120 |
| -LL | fn test_query18(_query: Query<&mut B, Or<(With<A>, With<B>)>>) {} |
| 120 | +LL | fn test_query18(_query: Query<&mut B, Or<(With<A>, With<B>)>>) { |
121 | 121 | | ^^^^^^^
|
122 | 122 |
|
123 | 123 | error: Unnecessary `With` Filter
|
124 |
| - --> $DIR/unnecessary_with.rs:33:49 |
| 124 | + --> $DIR/unnecessary_with.rs:69:49 |
125 | 125 | |
|
126 |
| -LL | fn test_query19(_query: Query<(), Or<(Added<A>, With<A>)>>) {} |
| 126 | +LL | fn test_query19(_query: Query<(), Or<(Added<A>, With<A>)>>) { |
127 | 127 | | ^^^^^^^
|
128 | 128 |
|
129 | 129 | error: Unnecessary `With` Filter
|
130 |
| - --> $DIR/unnecessary_with.rs:34:51 |
| 130 | + --> $DIR/unnecessary_with.rs:72:51 |
131 | 131 | |
|
132 |
| -LL | fn test_query20(_query: Query<(), Or<(Changed<A>, With<A>)>>) {} |
| 132 | +LL | fn test_query20(_query: Query<(), Or<(Changed<A>, With<A>)>>) { |
133 | 133 | | ^^^^^^^
|
134 | 134 |
|
135 | 135 | error: Unnecessary `With` Filter
|
136 |
| - --> $DIR/unnecessary_with.rs:36:40 |
| 136 | + --> $DIR/unnecessary_with.rs:76:40 |
137 | 137 | |
|
138 |
| -LL | fn test_query21(_query: Query<&A, (Or<(With<A>, With<B>)>, With<C>)>) {} |
| 138 | +LL | fn test_query21(_query: Query<&A, (Or<(With<A>, With<B>)>, With<C>)>) { |
139 | 139 | | ^^^^^^^
|
140 | 140 |
|
141 | 141 | error: Unnecessary `With` Filter
|
142 |
| - --> $DIR/unnecessary_with.rs:37:44 |
| 142 | + --> $DIR/unnecessary_with.rs:79:44 |
143 | 143 | |
|
144 |
| -LL | fn test_query22(_query: Query<&mut A, (Or<(With<A>, With<B>)>, With<C>)>) {} |
| 144 | +LL | fn test_query22(_query: Query<&mut A, (Or<(With<A>, With<B>)>, With<C>)>) { |
145 | 145 | | ^^^^^^^
|
146 | 146 |
|
147 | 147 | error: aborting due to 24 previous errors
|
|
0 commit comments