bevy/crates/bevy_ecs/macros/src
SpecificProtagonist c6ba3d31cf
EntityEvent derive: Fix silent error (#19894)
# Objective
The `EntityEvent` derive macro only parsed the first `entity_event`
attr, resulting in the following event having auto propagation silently
turned off:
```rust
#[derive(Event, EntityEvent)]
#[entity_event(traversal = &'static ChildOf)]
#[entity_event(auto_propagate)]
struct MyEvent;
```

This should either fail to compile or be parsed correctly.

## Solution

Parse all `entity_event`.

## Testing

Cargo expand the snippet above. I haven't added an extra test for this.
2025-07-01 03:20:54 +00:00
..
component.rs EntityEvent derive: Fix silent error (#19894) 2025-07-01 03:20:54 +00:00
lib.rs Let Component::map_entities defer to MapEntities (#19414) 2025-06-23 21:05:04 +00:00
query_data.rs Fix QueryData derive codegen (#19750) 2025-06-20 15:48:16 +00:00
query_filter.rs Remove 's lifetime from WorldQuery::Fetch (#19720) 2025-06-19 00:58:21 +00:00
world_query.rs Remove 's lifetime from WorldQuery::Fetch (#19720) 2025-06-19 00:58:21 +00:00