@@ -1075,7 +1075,7 @@ unsafe impl SystemParam for &'_ World {
1075
1075
}
1076
1076
}
1077
1077
1078
- const MUT_DEFERRED_WORLD_ERROR : & str = "DeferredWorld requires exclusive access
1078
+ const MUT_DEFERRED_WORLD_ERROR : & str = "DeferredWorld requires exclusive access \
1079
1079
to the entire world, but a previous system parameter already registered \
1080
1080
access to a part of it. Allowing this would break Rust's mutability rules";
1081
1081
@@ -1087,6 +1087,7 @@ unsafe impl<'w> SystemParam for DeferredWorld<'w> {
1087
1087
fn init_state ( _world : & mut World , system_meta : & mut SystemMeta ) -> Self :: State {
1088
1088
let mut access = Access :: default ( ) ;
1089
1089
access. read_all ( ) ;
1090
+ access. write_all ( ) ;
1090
1091
if !system_meta
1091
1092
. archetype_component_access
1092
1093
. is_compatible ( & access)
@@ -1098,6 +1099,7 @@ unsafe impl<'w> SystemParam for DeferredWorld<'w> {
1098
1099
let mut filtered_access = FilteredAccess :: default ( ) ;
1099
1100
1100
1101
filtered_access. read_all ( ) ;
1102
+ filtered_access. write_all ( ) ;
1101
1103
if !system_meta
1102
1104
. component_access_set
1103
1105
. get_conflicts_single ( & filtered_access)
@@ -1135,6 +1137,7 @@ unsafe impl SystemParam for &mut World {
1135
1137
fn init_state ( _world : & mut World , system_meta : & mut SystemMeta ) -> Self :: State {
1136
1138
let mut access = Access :: default ( ) ;
1137
1139
access. read_all ( ) ;
1140
+ access. write_all ( ) ;
1138
1141
if !system_meta
1139
1142
. archetype_component_access
1140
1143
. is_compatible ( & access)
@@ -1146,6 +1149,7 @@ unsafe impl SystemParam for &mut World {
1146
1149
let mut filtered_access = FilteredAccess :: default ( ) ;
1147
1150
1148
1151
filtered_access. read_all ( ) ;
1152
+ filtered_access. write_all ( ) ;
1149
1153
if !system_meta
1150
1154
. component_access_set
1151
1155
. get_conflicts_single ( & filtered_access)
0 commit comments