You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation for WorldQuery and filters (#11952)
# Objective
`update_archetype_component_access` was removed from queries in #9774,
but some documentation still refers to it.
## Solution
Update the documentation. Since a bunch of these were in SAFETY comments
it would be nice if someone who knows the details better could check
that the rest of those comments are still valid.
/// `fetch` accesses are a subset of the subqueries' accesses
369
-
/// This is sound because `update_component_access` and `update_archetype_component_access` adds accesses according to the implementations of all the subqueries.
367
+
/// This is sound because `update_component_access` adds accesses according to the implementations of all the subqueries.
370
368
/// `update_component_access` replace the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
371
369
/// This is sound because `matches_component_set` returns a disjunction of the results of the subqueries' implementations.
/// `fetch` accesses a single component in a readonly way.
582
-
/// This is sound because `update_component_access` and `update_archetype_component_access` add read access for that component and panic when appropriate.
580
+
/// This is sound because `update_component_access` adds read access for that component and panics when appropriate.
583
581
/// `update_component_access` adds a `With` filter for a component.
584
582
/// This is sound because `matches_component_set` returns whether the set contains that component.
585
583
unsafeimpl<T:Component>WorldQueryforAdded<T>{
@@ -779,7 +777,7 @@ pub struct ChangedFetch<'w> {
779
777
780
778
/// SAFETY:
781
779
/// `fetch` accesses a single component in a readonly way.
782
-
/// This is sound because `update_component_access` and `update_archetype_component_access` add read access for that component and panic when appropriate.
780
+
/// This is sound because `update_component_access` add read access for that component and panics when appropriate.
783
781
/// `update_component_access` adds a `With` filter for a component.
784
782
/// This is sound because `matches_component_set` returns whether the set contains that component.
/// `fetch` accesses are the conjunction of the subqueries' accesses
148
-
/// This is sound because `update_component_access` and `update_archetype_component_access` adds accesses according to the implementations of all the subqueries.
148
+
/// This is sound because `update_component_access` adds accesses according to the implementations of all the subqueries.
149
149
/// `update_component_access` adds all `With` and `Without` filters from the subqueries.
150
150
/// This is sound because `matches_component_set` always returns `false` if any the subqueries' implementations return `false`.
0 commit comments