diff --git a/crates/bevy_render/src/extract_param.rs b/crates/bevy_render/src/extract_param.rs index 4038a71aa6..584a82303f 100644 --- a/crates/bevy_render/src/extract_param.rs +++ b/crates/bevy_render/src/extract_param.rs @@ -52,8 +52,10 @@ pub struct ExtractState { main_world_state: as SystemParam>::State, } -// SAFETY: only accesses MainWorld resource with read only system params using Res, -// which is initialized in init() +// SAFETY: The only `World` access (`Res`) is read-only. +unsafe impl

ReadOnlySystemParam for Extract<'_, '_, P> where P: ReadOnlySystemParam {} + +// SAFETY: The only `World` access is properly registered by `Res::init_state`. unsafe impl

SystemParam for Extract<'_, '_, P> where P: ReadOnlySystemParam,