bevy/crates/bevy_ecs/src
Pascal Hertleif 0c2c52a0cd
Derive Error for more error types (#10240)
# Objective

Align all error-like types to implement `Error`.

Fixes  #10176

## Solution

- Derive `Error` on more types
- Refactor instances of manual implementations that could be derived

This adds thiserror as a dependency to bevy_transform, which might
increase compilation time -- but I don't know of any situation where you
might only use that but not any other crate that pulls in bevy_utils.

The `contributors` example has a `LoadContributorsError` type, but as
it's an example I have not updated it. Doing that would mean either
having a `use bevy_internal::utils::thiserror::Error;` in an example
file, or adding `thiserror` as a dev-dependency to the main `bevy`
crate.

---

## Changelog

- All `…Error` types now implement the `Error` trait
2023-10-28 22:20:37 +00:00
..
entity Use EntityHashMap<Entity, T> for render world entity storage for better performance (#9903) 2023-09-27 08:28:28 +00:00
query Derive Error for more error types (#10240) 2023-10-28 22:20:37 +00:00
reflect reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
schedule Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
storage Make builder types take and return Self (#10001) 2023-10-09 19:46:17 +00:00
system Derive Error for more error types (#10240) 2023-10-28 22:20:37 +00:00
world Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
archetype.rs Add a public API to ArchetypeGeneration/Id (#9825) 2023-10-02 12:54:45 +00:00
bundle.rs Fix some nightly warnings (#9672) 2023-09-02 18:35:06 +00:00
change_detection.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
component.rs Updates for rust 1.73 (#10035) 2023-10-06 00:31:10 +00:00
event.rs Only run event systems if they have tangible work to do (#7728) 2023-09-24 00:16:33 +00:00
lib.rs Global TaskPool API improvements (#10008) 2023-10-23 20:48:48 +00:00
removal_detection.rs Hide UnsafeWorldCell::unsafe_world (#9741) 2023-10-02 12:46:43 +00:00