bevy/release-content/migration-guides/interned-labels-cleanup.md
Tim 4924cf5828
Remove upcasting methods + Cleanup interned label code (#18984)
Hiya!

# Objective

- Remove upcasting methods that are no longer necessary since Rust 1.86.
- Cleanup the interned label code.
 
## Notes
- I didn't try to remove the upcasting methods from `bevy_reflect`, as
there appears to be some complexity related to remote type reflection.
- There are likely some other upcasting methods floating around.

## Testing
I ran the `breakout` example to check that the hashing/eq
implementations of the labels are still correct.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-05-26 15:38:12 +00:00

353 B

title pull_requests
Interned labels cleanup
18984
  • DynEq::as_any has been removed. Use &value as &dyn Any instead.
  • DynHash::as_dyn_eq has been removed. Use &value as &dyn DynEq instead.
  • as_dyn_eq has been removed from 'label' types such as ScheduleLabel and SystemSet. Call DynEq::dyn_eq directly on the label instead.