bevy/crates/bevy_ecs/src
Chris Russell 3442e2556d
Use new run_without_applying_deferred method in SingleThreadedExecutor (#18684)
# Objective

Simplify code in the `SingleThreadedExecutor` by removing a special case
for exclusive systems.

The `SingleThreadedExecutor` runs systems without immediately applying
deferred buffers. That required calling `run_unsafe()` instead of
`run()`, but that would `panic` for exclusive systems, so the code also
needed a special case for those. Following #18076 and #18406, we have a
`run_without_applying_deferred` method that has the exact behavior we
want and works on exclusive systems.

## Solution

Replace the code in `SingleThreadedExecutor` that runs systems with a
single call to `run_without_applying_deferred()`. Also add this as a
wrapper in the `__rust_begin_short_backtrace` module to preserve the
special behavior for backtraces.
2025-05-06 00:09:02 +00:00
..
entity Remove insert_or_spawn function family (#18148) 2025-05-05 23:14:32 +00:00
error Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 19:59:48 +00:00
event Improve error message for missing events (#18683) 2025-04-02 19:25:48 +00:00
identifier
observer Prevent exclusive systems from being used as observers (#19033) 2025-05-05 17:46:25 +00:00
query Let FilteredEntity(Ref|Mut) receive access when nested. (#18236) 2025-05-05 23:23:46 +00:00
reflect
relationship Implement RelationshipSourceCollection for IndexSet (#18471) 2025-05-04 10:17:29 +00:00
schedule Use new run_without_applying_deferred method in SingleThreadedExecutor (#18684) 2025-05-06 00:09:02 +00:00
storage Fix sparse set components ignoring insert_if_new/InsertMode (#19059) 2025-05-05 17:42:36 +00:00
system Let FilteredEntity(Ref|Mut) receive access when nested. (#18236) 2025-05-05 23:23:46 +00:00
world Add BundleRemover (#18521) 2025-05-05 23:55:04 +00:00
archetype.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
batching.rs
bundle.rs Add BundleRemover (#18521) 2025-05-05 23:55:04 +00:00
change_detection.rs Expose the added tick for change detection, both getting and setting. (#18746) 2025-04-08 21:13:27 +00:00
component.rs Bump crate-ci/typos from 1.31.1 to 1.32.0 (#19072) 2025-05-05 17:27:36 +00:00
entity_disabling.rs
hierarchy.rs Add a method to clear all related entity to EntityCommands and friends (#18907) 2025-04-30 20:59:29 +00:00
intern.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
label.rs
lib.rs Add Allows filter to bypass DefaultQueryFilters (#18192) 2025-05-05 23:21:26 +00:00
name.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
never.rs Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 19:59:48 +00:00
removal_detection.rs
resource.rs
spawn.rs Change with_related to work with a Bundle and added with_relationships method (#18699) 2025-04-09 02:34:49 +00:00
traversal.rs