[Merged by Bors] - Add 's (state) lifetime to Fetch#2515
[Merged by Bors] - Add 's (state) lifetime to Fetch#2515BoxyUwU wants to merge 2 commits intobevyengine:mainfrom
Fetch#2515Conversation
|
Right, I think I now understand these changes (and the similar changes for the render rework) To be clear, this change is only useful for functions which use direct world access, right? I.e. this has no effect for within systems (since they cannot make any assumptions about how long the system's state lasts). |
|
Yea this change is only necessary for when you're working with direct world access as the To be even more clear: nothing in bevy main currently needs this change, only the renderer rework and relations seems to want it afaict |
|
From render rework : https://github.com/cart/bevy/blob/6604d473b45c01415a19e765e628e793128a7267/crates/bevy_ecs/src/query/fetch.rs#L48 I would be for merging that now, it would remove some changes from the render rework |
|
bors r+ |
FetchFetch
Allows iterators to return things that borrow data from
QueryState, needed this in my relations PR figure might be worth landing separately maybe