serde/test_suite/tests
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
..
bytes Replace try! macro in test suite 2018-12-31 21:46:14 -05:00
macros Ignore unused_macro_rules warning in test macros 2022-05-12 21:33:43 -07:00
regression Add regression test for issue 2415 2023-03-27 22:00:01 -07:00
ui Point out serde(untagged) variants which are out of order 2023-06-07 21:49:30 -07:00
unstable Update test suite to 2018 edition 2018-12-31 21:53:37 -05:00
compiletest.rs Ignore unused ignore attribute warning in some configurations 2022-04-24 16:01:22 -07:00
regression.rs Make a directory dedicated to regression tests 2023-03-08 19:02:42 -08:00
test_annotations.rs Format PR 2403 with rustfmt 2023-06-07 21:18:30 -07:00
test_borrow.rs Reimplement tests that touched serde_test internal API 2023-05-04 17:38:58 -07:00
test_de_error.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_de.rs Reimplement tests that touched serde_test internal API 2023-05-04 17:38:58 -07:00
test_gen.rs Add a test of serde(bound = "") attribute 2023-03-08 19:11:25 -08:00
test_identifier.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_ignored_any.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_macros.rs Delete deny(unaligned_references) from test 2023-02-01 19:06:06 -08:00
test_remote.rs Fix Into conversion involving generic remote derive with getter 2022-11-27 17:18:10 -08:00
test_roundtrip.rs Implement test suite seq macro without tt muncher 2022-01-20 19:40:58 -08:00
test_self.rs Enable pedantic lints on test suite in CI 2021-11-04 20:21:48 -07:00
test_ser.rs Serialize unsized RefCell, Mutex and RwLock 2022-09-22 09:57:55 +03:00
test_serde_path.rs Ignore extra_unused_type_parameters clippy lint in test 2023-02-10 19:14:43 -08:00
test_unstable.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_value.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00