a398237930
Previously if someone wrote an enum containing: - `A` (untagged) - `B` (tagged) - `C` (tagged) - `D` (untagged) - `E` (tagged) - `F` (untagged) serde_derive would produce errors referring to B and E only, saying you're supposed to put untagged variants at the end. The choice of B and E for this error doesn't make a lot of sense because in order to resolve the issue, the user must either: - move A and D down or: - move B, C, and E up. This commit changes the error to appear on A and D instead. |
||
---|---|---|
.. | ||
content-no-tag.rs | ||
content-no-tag.stderr | ||
internal-tuple-variant.rs | ||
internal-tuple-variant.stderr | ||
partially_tagged_wrong_order.rs | ||
partially_tagged_wrong_order.stderr | ||
untagged-and-adjacent.rs | ||
untagged-and-adjacent.stderr | ||
untagged-and-content.rs | ||
untagged-and-content.stderr | ||
untagged-and-internal.rs | ||
untagged-and-internal.stderr | ||
untagged-struct.rs | ||
untagged-struct.stderr |