File tree 1 file changed +4
-2
lines changed
crates/bevy_ecs/src/world
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2355,14 +2355,16 @@ impl World {
2355
2355
} ) ;
2356
2356
2357
2357
// SAFETY:
2358
- // - ???
2358
+ // - We have exclusive access to the world, so no other code can be aliasing the `TickCells`
2359
+ // - We only hold one `TicksMut` at a time, and we let go of it before getting the next one
2359
2360
let ticks = unsafe {
2360
2361
TicksMut :: from_tick_cells ( ticks, self . last_change_tick ( ) , self . read_change_tick ( ) )
2361
2362
} ;
2362
2363
2363
2364
let mut_untyped = MutUntyped {
2364
2365
// SAFETY:
2365
- // - ???
2366
+ // - We have exclusive access to the world, so no other code can be aliasing the `Ptr`
2367
+ // - We iterate one resource at a time, and we let go of each `PtrMut` before getting the next one
2366
2368
value : unsafe { ptr. assert_unique ( ) } ,
2367
2369
ticks,
2368
2370
} ;
You can’t perform that action at this time.
0 commit comments