Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/bevy_ecs/src/schedule/executor/multi_threaded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ impl ExecutorState {
}

#[cfg(feature = "hotpatching")]
// SAFETY: No system should mutate `HotPatchChanges`
// SAFETY: This operation is not safe. It could create UB if a user creates a mutable reference
// to `HotPatchChanges` in a system. But this can only happen when the `hotpatching` feature is
// enabled.
let hotpatch_tick = unsafe {
context
.environment
Expand Down