Description
Something in lexing, parsing, or even stringification or pretty-printing is now causing code that previously yielded strings like "Component1"
to serde, based on the type name, to now emit strings like " Component1"
. This has been extracted from #128899 because many of the regressions there proved to be unrelated to each other, and it was hard to triage out what the "real" problem was. We have and most of them depended on unstable library details, but the bbarker/bevy_serde_macros
case was distinct.
See @Nemo157's comment:
Equality doesn't care about which order you check the keys in, the debug output is different but that shouldn't affect the comparison result. There seem to be extra spaces in the keys on one side, which I assume means the test itself is broken. EDIT: looking at it a little more, seems to be related to not accounting for whitespace in
stringify!
ofty
fragments, sotests :: Component1
gets split at the::
and given the nameComponent1
instead of the expectedComponent1
, maybe #125174 related.
Originally posted by @Nemo157 in #128899 (comment)