-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Remove upcasting methods + Cleanup interned label code #18984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Oops, I definitely did break something :P |
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
} | ||
|
||
fn dyn_hash(&self, mut state: &mut dyn Hasher) { | ||
TypeId::of::<Self>().hash(&mut state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, SystemSet::dyn_hash
hashed the type id followed by the value, while DynHash::dyn_hash
hashes the value followed by the type id. It's good that this is only implemented once now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had completely overlooked the different ordering! Different hash implementations could produce some really cursed bugs. Hopefully no one hits that in the meantime 🙏
Hiya!
Objective
Notes
bevy_reflect
, as there appears to be some complexity related to remote type reflection.Testing
I ran the
breakout
example to check that the hashing/eq implementations of the labels are still correct.