bevy/crates
Jakob Hellermann a491bce680
Fix SystemTypeSet::system_type being out of sync with System::type_id (#12030)
## Objective

Always have `some_system.into_system().type_id() ==
some_system.into_system_set().system_type().unwrap()`.

System sets have a `fn system_type() -> Option<TypeId>` that is
implemented by `SystemTypeSet` to returning the TypeId of the system's
function type. This was implemented in
https://github.com/bevyengine/bevy/pull/7715 and is used in
`bevy_mod_debugdump` to handle `.after(function)` constraints.

Back then, `System::type_id` always also returned the type id of the
function item, not of `FunctionSystem<M, F>`.

https://github.com/bevyengine/bevy/pull/11728 changes the behaviour of
`System::type_id` so that it returns the id of the
`FunctionSystem`/`ExclusiveFunctionSystem` wrapper, but it did not
change `SystemTypeSet::system_type`, so doing the lookup breaks in
`bevy_mod_debugdump`.

## Solution

Change `IntoSystemSet` for functions to return a
`SystemTypeSet<FunctionSystem>` /
`SystemTypeSet<ExclusiveFunctionSystem>` instead of `SystemTypeSet<F>`.
2024-02-21 23:40:45 +00:00
..
bevy_a11y Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_animation Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_app Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_asset Create imported_assets directory with full path (#12022) 2024-02-21 21:59:59 +00:00
bevy_audio Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_core Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_core_pipeline Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_derive Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_diagnostic Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_dylib Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_dynamic_plugin Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_ecs Fix SystemTypeSet::system_type being out of sync with System::type_id (#12030) 2024-02-21 23:40:45 +00:00
bevy_ecs_compile_fail_tests Remove APIs deprecated in 0.13 (#11974) 2024-02-19 19:04:47 +00:00
bevy_encase_derive Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_gilrs Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_gizmos Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_gltf Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_hierarchy Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_input Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_internal Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_log Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_macro_utils Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_macros_compile_fail_tests Standardize toml format with taplo (#10594) 2023-11-21 01:04:14 +00:00
bevy_math Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_mikktspace Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_pbr Make Globals visible in vertex shaders (#12032) 2024-02-21 23:16:43 +00:00
bevy_ptr Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_reflect Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_reflect_compile_fail_tests bevy_reflect_derive: Clean up attribute logic (#11777) 2024-02-12 15:16:27 +00:00
bevy_render Parse missing mime types (#12028) 2024-02-21 21:56:59 +00:00
bevy_scene Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_sprite Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_tasks Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_text Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_time Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_transform Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_ui Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_utils Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_window Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00
bevy_winit Bump Version after Release (#12020) 2024-02-21 20:58:59 +00:00