@@ -480,10 +480,10 @@ unsafe impl<'a> WorldQuery for EntityRef<'a> {
480480
481481 fn update_component_access ( _state : & Self :: State , access : & mut FilteredAccess < ComponentId > ) {
482482 assert ! (
483- !access. access( ) . has_any_write ( ) ,
483+ !access. access( ) . has_any_component_write ( ) ,
484484 "EntityRef conflicts with a previous access in this query. Shared access cannot coincide with exclusive access." ,
485485 ) ;
486- access. read_all ( ) ;
486+ access. read_all_components ( ) ;
487487 }
488488
489489 fn init_state ( _world : & mut World ) { }
@@ -556,10 +556,10 @@ unsafe impl<'a> WorldQuery for EntityMut<'a> {
556556
557557 fn update_component_access ( _state : & Self :: State , access : & mut FilteredAccess < ComponentId > ) {
558558 assert ! (
559- !access. access( ) . has_any_read ( ) ,
559+ !access. access( ) . has_any_component_read ( ) ,
560560 "EntityMut conflicts with a previous access in this query. Exclusive access cannot coincide with any other accesses." ,
561561 ) ;
562- access. write_all ( ) ;
562+ access. write_all_components ( ) ;
563563 }
564564
565565 fn init_state ( _world : & mut World ) { }
@@ -600,7 +600,7 @@ unsafe impl<'a> WorldQuery for FilteredEntityRef<'a> {
600600 _this_run : Tick ,
601601 ) -> Self :: Fetch < ' w > {
602602 let mut access = Access :: default ( ) ;
603- access. read_all ( ) ;
603+ access. read_all_components ( ) ;
604604 ( world, access)
605605 }
606606
@@ -612,9 +612,9 @@ unsafe impl<'a> WorldQuery for FilteredEntityRef<'a> {
612612 _table : & Table ,
613613 ) {
614614 let mut access = Access :: default ( ) ;
615- state. access . reads ( ) . for_each ( |id| {
615+ state. access . component_reads ( ) . for_each ( |id| {
616616 if archetype. contains ( id) {
617- access. add_read ( id) ;
617+ access. add_component_read ( id) ;
618618 }
619619 } ) ;
620620 fetch. 1 = access;
@@ -623,9 +623,9 @@ unsafe impl<'a> WorldQuery for FilteredEntityRef<'a> {
623623 #[ inline]
624624 unsafe fn set_table < ' w > ( fetch : & mut Self :: Fetch < ' w > , state : & Self :: State , table : & ' w Table ) {
625625 let mut access = Access :: default ( ) ;
626- state. access . reads ( ) . for_each ( |id| {
626+ state. access . component_reads ( ) . for_each ( |id| {
627627 if table. has_column ( id) {
628- access. add_read ( id) ;
628+ access. add_component_read ( id) ;
629629 }
630630 } ) ;
631631 fetch. 1 = access;
@@ -703,7 +703,7 @@ unsafe impl<'a> WorldQuery for FilteredEntityMut<'a> {
703703 _this_run : Tick ,
704704 ) -> Self :: Fetch < ' w > {
705705 let mut access = Access :: default ( ) ;
706- access. write_all ( ) ;
706+ access. write_all_components ( ) ;
707707 ( world, access)
708708 }
709709
@@ -715,14 +715,14 @@ unsafe impl<'a> WorldQuery for FilteredEntityMut<'a> {
715715 _table : & Table ,
716716 ) {
717717 let mut access = Access :: default ( ) ;
718- state. access . reads ( ) . for_each ( |id| {
718+ state. access . component_reads ( ) . for_each ( |id| {
719719 if archetype. contains ( id) {
720- access. add_read ( id) ;
720+ access. add_component_read ( id) ;
721721 }
722722 } ) ;
723- state. access . writes ( ) . for_each ( |id| {
723+ state. access . component_writes ( ) . for_each ( |id| {
724724 if archetype. contains ( id) {
725- access. add_write ( id) ;
725+ access. add_component_write ( id) ;
726726 }
727727 } ) ;
728728 fetch. 1 = access;
@@ -731,14 +731,14 @@ unsafe impl<'a> WorldQuery for FilteredEntityMut<'a> {
731731 #[ inline]
732732 unsafe fn set_table < ' w > ( fetch : & mut Self :: Fetch < ' w > , state : & Self :: State , table : & ' w Table ) {
733733 let mut access = Access :: default ( ) ;
734- state. access . reads ( ) . for_each ( |id| {
734+ state. access . component_reads ( ) . for_each ( |id| {
735735 if table. has_column ( id) {
736- access. add_read ( id) ;
736+ access. add_component_read ( id) ;
737737 }
738738 } ) ;
739- state. access . writes ( ) . for_each ( |id| {
739+ state. access . component_writes ( ) . for_each ( |id| {
740740 if table. has_column ( id) {
741- access. add_write ( id) ;
741+ access. add_component_write ( id) ;
742742 }
743743 } ) ;
744744 fetch. 1 = access;
@@ -988,11 +988,11 @@ unsafe impl<T: Component> WorldQuery for &T {
988988 access : & mut FilteredAccess < ComponentId > ,
989989 ) {
990990 assert ! (
991- !access. access( ) . has_write ( component_id) ,
991+ !access. access( ) . has_component_write ( component_id) ,
992992 "&{} conflicts with a previous access in this query. Shared access cannot coincide with exclusive access." ,
993- std:: any:: type_name:: <T >( ) ,
993+ std:: any:: type_name:: <T >( ) ,
994994 ) ;
995- access. add_read ( component_id) ;
995+ access. add_component_read ( component_id) ;
996996 }
997997
998998 fn init_state ( world : & mut World ) -> ComponentId {
@@ -1183,11 +1183,11 @@ unsafe impl<'__w, T: Component> WorldQuery for Ref<'__w, T> {
11831183 access : & mut FilteredAccess < ComponentId > ,
11841184 ) {
11851185 assert ! (
1186- !access. access( ) . has_write ( component_id) ,
1186+ !access. access( ) . has_component_write ( component_id) ,
11871187 "&{} conflicts with a previous access in this query. Shared access cannot coincide with exclusive access." ,
1188- std:: any:: type_name:: <T >( ) ,
1188+ std:: any:: type_name:: <T >( ) ,
11891189 ) ;
1190- access. add_read ( component_id) ;
1190+ access. add_component_read ( component_id) ;
11911191 }
11921192
11931193 fn init_state ( world : & mut World ) -> ComponentId {
@@ -1378,11 +1378,11 @@ unsafe impl<'__w, T: Component> WorldQuery for &'__w mut T {
13781378 access : & mut FilteredAccess < ComponentId > ,
13791379 ) {
13801380 assert ! (
1381- !access. access( ) . has_read ( component_id) ,
1381+ !access. access( ) . has_component_read ( component_id) ,
13821382 "&mut {} conflicts with a previous access in this query. Mutable component access must be unique." ,
1383- std:: any:: type_name:: <T >( ) ,
1383+ std:: any:: type_name:: <T >( ) ,
13841384 ) ;
1385- access. add_write ( component_id) ;
1385+ access. add_component_write ( component_id) ;
13861386 }
13871387
13881388 fn init_state ( world : & mut World ) -> ComponentId {
@@ -1476,11 +1476,11 @@ unsafe impl<'__w, T: Component> WorldQuery for Mut<'__w, T> {
14761476 // Update component access here instead of in `<&mut T as WorldQuery>` to avoid erroneously referencing
14771477 // `&mut T` in error message.
14781478 assert ! (
1479- !access. access( ) . has_read ( component_id) ,
1479+ !access. access( ) . has_component_read ( component_id) ,
14801480 "Mut<{}> conflicts with a previous access in this query. Mutable component access mut be unique." ,
1481- std:: any:: type_name:: <T >( ) ,
1481+ std:: any:: type_name:: <T >( ) ,
14821482 ) ;
1483- access. add_write ( component_id) ;
1483+ access. add_component_write ( component_id) ;
14841484 }
14851485
14861486 // Forwarded to `&mut T`
0 commit comments