diff --git a/crates/bevy_ecs/src/schedule/executor_parallel.rs b/crates/bevy_ecs/src/schedule/executor_parallel.rs index 97252ddca3f1d1..5b9326ce9822db 100644 --- a/crates/bevy_ecs/src/schedule/executor_parallel.rs +++ b/crates/bevy_ecs/src/schedule/executor_parallel.rs @@ -190,10 +190,8 @@ impl ParallelExecutor { .unwrap_or_else(|error| unreachable!("{}", error)); #[cfg(feature = "trace")] let system_guard = system_span.enter(); - #[allow(clippy::undocumented_unsafe_blocks)] // TODO: document why this is safe - unsafe { - system.run_unsafe((), world) - }; + // SAFETY: the executor prevents two systems with conflicting access from running simultaneously. + unsafe { system.run_unsafe((), world) }; #[cfg(feature = "trace")] drop(system_guard); finish_sender