bevy/crates/bevy_ecs/src/world
MiniaczQ 5289e18e0b
System param validation for observers, system registry and run once (#15526)
# Objective

Fixes #15394

## Solution

Observers now validate params.

System registry has a new error variant for when system running fails
due to invalid parameters.

Run once now returns a `Result<Out, RunOnceError>` instead of `Out`.
This is more inline with system registry, which also returns a result.

I'll address warning messages in #15500.

## Testing

Added one test for each case.

---

## Migration Guide

- `RunSystemOnce::run_system_once` and
`RunSystemOnce::run_system_once_with` now return a `Result<Out>` instead
of just `Out`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Zachary Harrold <zac@harrold.com.au>
2024-09-30 01:00:39 +00:00
..
command_queue.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
component_constants.rs Implement std::fmt::Debug for ecs::observer::Trigger (#14857) 2024-08-25 16:55:54 +00:00
deferred_world.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
entity_ref.rs System param validation for observers, system registry and run once (#15526) 2024-09-30 01:00:39 +00:00
error.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
identifier.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
mod.rs Allow registering of resources via ReflectResource / ReflectComponent (#15496) 2024-09-28 20:49:53 +00:00
reflect.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
spawn_batch.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
unsafe_world_cell.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00