bevy/crates/bevy_ecs/src
Nathan Ward 00323b3048 Better error message for World::resource_scope (#5727)
# Objective

- Fixes #5365 
- The `assert!()` when the resource from `World::resource_scope` is inserted into the world is not descriptive.

## Solution

- Add more context to the assert inside of `World::resource_scope` when the `FnOnce` param inserts the resource.
2022-08-18 18:53:08 +00:00
..
entity Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
query make WorldQuery very flat (#5205) 2022-08-04 21:51:02 +00:00
schedule Remove an outdated workaround for impl Trait (#5659) 2022-08-16 23:40:24 +00:00
storage Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
system SystemParam for the name of the system you are currently in (#5731) 2022-08-18 18:31:12 +00:00
world Better error message for World::resource_scope (#5727) 2022-08-18 18:53:08 +00:00
archetype.rs Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
bundle.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
change_detection.rs remove ReflectMut in favor of Mut<dyn Reflect> (#5630) 2022-08-09 16:19:34 +00:00
component.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
event.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
lib.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
reflect.rs remove ReflectMut in favor of Mut<dyn Reflect> (#5630) 2022-08-09 16:19:34 +00:00