Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mutual exclusion safety info on filter_fetch (bevyengine#9836)
# Objective Currently, in bevy, it's valid to do `Query<&mut Foo, Changed<Foo>>`. This assumes that `filter_fetch` and `fetch` are mutually exclusive, because of the mutable reference to the tick that `Mut<Foo>` implies and the reference that `Changed<Foo>` implies. However nothing guarantees that. ## Solution Documenting this assumption as a safety invariant is the least thing.
- Loading branch information