@@ -155,22 +155,24 @@ fn impl_trait_query(arg: TokenStream, item: TokenStream) -> Result<TokenStream2>
155155
156156 const IS_READ_ONLY : bool = true ;
157157
158- type Item <' __w> = #my_crate:: ReadTraits <' __w, #trait_object>;
158+ type Item <' __w, ' __s > = #my_crate:: ReadTraits <' __w, #trait_object>;
159159
160160 #[ inline]
161- fn shrink<' wlong: ' wshort, ' wshort>(
162- item: Self :: Item <' wlong>,
163- ) -> Self :: Item <' wshort> {
161+ fn shrink<' wlong: ' wshort, ' wshort, ' s >(
162+ item: Self :: Item <' wlong, ' s >,
163+ ) -> Self :: Item <' wshort, ' s > {
164164 item
165165 }
166166
167167 #[ inline]
168- unsafe fn fetch<' w>(
168+ unsafe fn fetch<' w, ' s>(
169+ state: & ' s Self :: State ,
169170 fetch: & mut Self :: Fetch <' w>,
170171 entity: #imports:: Entity ,
171172 table_row: #imports:: TableRow ,
172- ) -> Self :: Item <' w> {
173+ ) -> Self :: Item <' w, ' s > {
173174 <#my_crate:: All <& #trait_object> as #imports:: QueryData >:: fetch(
175+ state,
174176 fetch,
175177 entity,
176178 table_row,
@@ -228,7 +230,7 @@ fn impl_trait_query(arg: TokenStream, item: TokenStream) -> Result<TokenStream2>
228230 #[ inline]
229231 fn update_component_access(
230232 state: & Self :: State ,
231- access: & mut #imports:: FilteredAccess <#imports :: ComponentId > ,
233+ access: & mut #imports:: FilteredAccess ,
232234 ) {
233235 <#my_crate:: All <& #trait_object> as #imports:: WorldQuery >:: update_component_access(
234236 state, access,
@@ -265,24 +267,26 @@ fn impl_trait_query(arg: TokenStream, item: TokenStream) -> Result<TokenStream2>
265267 {
266268 type ReadOnly = & ' __a #trait_object;
267269
268- type Item <' __w> = #my_crate:: WriteTraits <' __w, #trait_object>;
270+ type Item <' __w, ' __s > = #my_crate:: WriteTraits <' __w, #trait_object>;
269271
270272 const IS_READ_ONLY : bool = false ;
271273
272274 #[ inline]
273- fn shrink<' wlong: ' wshort, ' wshort>(
274- item: Self :: Item <' wlong>,
275- ) -> Self :: Item <' wshort> {
275+ fn shrink<' wlong: ' wshort, ' wshort, ' s >(
276+ item: Self :: Item <' wlong, ' s >,
277+ ) -> Self :: Item <' wshort, ' s > {
276278 item
277279 }
278280
279281 #[ inline]
280- unsafe fn fetch<' w>(
282+ unsafe fn fetch<' w, ' s>(
283+ state: & ' s Self :: State ,
281284 fetch: & mut Self :: Fetch <' w>,
282285 entity: #imports:: Entity ,
283286 table_row: #imports:: TableRow ,
284- ) -> Self :: Item <' w> {
287+ ) -> Self :: Item <' w, ' s > {
285288 <#my_crate:: All <& mut #trait_object> as #imports:: QueryData >:: fetch(
289+ state,
286290 fetch,
287291 entity,
288292 table_row,
@@ -337,7 +341,7 @@ fn impl_trait_query(arg: TokenStream, item: TokenStream) -> Result<TokenStream2>
337341 #[ inline]
338342 fn update_component_access(
339343 state: & Self :: State ,
340- access: & mut #imports:: FilteredAccess <#imports :: ComponentId > ,
344+ access: & mut #imports:: FilteredAccess ,
341345 ) {
342346 <#my_crate:: All <& mut #trait_object> as #imports:: WorldQuery >:: update_component_access(
343347 state, access,
0 commit comments