serde/test_suite/tests/ui/enum-representation
David Tolnay a398237930
Point out serde(untagged) variants which are out of order
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.
2023-06-07 21:49:30 -07:00
..
content-no-tag.rs Update ui tests to 2018 edition 2018-12-31 21:38:13 -05:00
content-no-tag.stderr Revert "Ui tests with compile_error resolved at call site" 2023-06-07 20:50:51 -07:00
internal-tuple-variant.rs Update ui tests to 2018 edition 2018-12-31 21:38:13 -05:00
internal-tuple-variant.stderr Revert "Ui tests with compile_error resolved at call site" 2023-06-07 20:50:51 -07:00
partially_tagged_wrong_order.rs Allowed Enum variants to be individually marked as untagged (#2403) 2023-06-07 20:58:59 -07:00
partially_tagged_wrong_order.stderr Point out serde(untagged) variants which are out of order 2023-06-07 21:49:30 -07:00
untagged-and-adjacent.rs Update ui tests to 2018 edition 2018-12-31 21:38:13 -05:00
untagged-and-adjacent.stderr Revert "Ui tests with compile_error resolved at call site" 2023-06-07 20:50:51 -07:00
untagged-and-content.rs Update ui tests to 2018 edition 2018-12-31 21:38:13 -05:00
untagged-and-content.stderr Revert "Ui tests with compile_error resolved at call site" 2023-06-07 20:50:51 -07:00
untagged-and-internal.rs Update ui tests to 2018 edition 2018-12-31 21:38:13 -05:00
untagged-and-internal.stderr Revert "Ui tests with compile_error resolved at call site" 2023-06-07 20:50:51 -07:00
untagged-struct.rs Update ui tests to 2018 edition 2018-12-31 21:38:13 -05:00
untagged-struct.stderr Revert "Ui tests with compile_error resolved at call site" 2023-06-07 20:50:51 -07:00