David Tolnay
1179158def
Update ui test with diagnostic::on_unimplemented from PR 2767
2024-07-06 13:29:51 -07:00
David Tolnay
91aa40e749
Add ui test of unsatisfied serde trait bound
2024-07-06 13:29:50 -07:00
David Tolnay
c42ebb8839
Update ui test suite to nightly-2024-02-12
2024-02-11 20:00:23 -08:00
David Tolnay
2083f43a28
Update ui test suite to nightly-2023-11-19
2023-11-18 18:13:57 -08:00
David Tolnay
37a32857a2
Update ui test suite to nightly-2023-10-06
2023-10-05 23:24:34 -04:00
David Tolnay
bd7b0e257e
Touch up PR 2553
2023-08-05 22:13:09 -07:00
Mingun
5c33931422
Allow #[serde(default)] on tuple structs
2023-08-03 22:32:34 +05:00
Jonas Platte
31a0e73489
Update error span for attribute / data kind mismatches
2023-07-27 10:47:45 +02:00
David Tolnay
dd9913675d
Ungroup imports
2023-07-25 23:06:34 -07:00
David Tolnay
2ef1cd4b35
Import macros exclusively through serde_derive in test suite
...
This makes it easier to execute tests against the precompiled serde_derive.
2023-07-19 09:08:05 -07:00
David Tolnay
117ef22142
Add ui test with suffixed string literals in attribute
2023-07-09 11:09:38 -07:00
David Tolnay
fa0312ac45
More formatting of doc tests and example code
2023-07-06 15:56:47 -07:00
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
David Ewert
48e5753e76
Allowed Enum variants to be individually marked as untagged ( #2403 )
2023-06-07 20:58:59 -07:00
David Tolnay
bbba632ab3
Revert "Ui tests with compile_error resolved at call site"
...
This reverts commit e77db40b8d
.
2023-06-07 20:50:51 -07:00
David Tolnay
e77db40b8d
Ui tests with compile_error resolved at call site
2023-06-07 20:02:04 -07:00
David Tolnay
bc22641359
Rewrite attribute parser using parse_nested_meta
2023-03-17 17:23:56 -07:00
David Tolnay
32f0d00ff9
Update to syn 2
2023-03-17 17:17:40 -07:00
David Tolnay
c0296ee11b
Add ui test of malformed attribute containing expression
2023-03-16 00:15:54 -07:00
David Tolnay
b7b636a23f
Treat field-level borrow attr as duplicate of variant-level borrow attr
2023-03-11 11:17:40 -08:00
David Tolnay
be57a5e00a
Eliminate special case on empty string passed to borrow=""
2023-03-08 18:50:19 -08:00
David Tolnay
b1b09eba60
Add ui test with nonempty string containing no lifetimes
2023-03-08 18:49:59 -08:00
David Tolnay
dd27ec8703
Update ui test suite to nightly-2023-02-01
2023-01-31 19:19:53 -08:00
David Tolnay
50354c2d0b
Improve error message on remote derive duplicate generics
2022-11-27 17:48:48 -08:00
David Tolnay
c4f67e679f
Add ui test of duplicate generics in remote derive
2022-11-27 17:48:48 -08:00
David Tolnay
3ffb86fc70
Ui test changes for trybuild 1.0.66
2022-10-04 22:28:38 -07:00
David Tolnay
b5c3b5e8e5
Update ui test suite to nightly-2022-04-17
2022-04-16 23:48:27 -07:00
David Tolnay
999c261d11
Ui test changes for trybuild 1.0.49
2021-10-08 02:46:15 -04:00
David Tolnay
efbe574209
Update ui test files
2021-10-07 00:56:29 -04:00
David Tolnay
a6690ea2fe
Update ui test suite to nightly-2021-09-14
2021-09-14 19:13:54 -07:00
David Tolnay
1094e2d334
Update ui test suite to nightly-2021-05-14
2021-05-13 19:16:07 -07:00
David Tolnay
4e002ece07
Provide list of recognized rename rules on parse error
2021-01-23 14:38:20 -08:00
David Tolnay
8084258a3e
Update ui tests to nightly-2020-10-20
2020-10-20 19:17:50 -07:00
David Tolnay
a61cd0f236
Update ui tests to nightly-2020-02-08
2020-02-08 00:10:00 -08:00
David Tolnay
895eb2ba6c
Update ui tests to nightly-2019-12-19
2019-12-18 23:46:29 -08:00
David Tolnay
cd365de70c
Update ui tests to nightly-2019-12-18
2019-12-17 23:47:40 -08:00
David Tolnay
90486607a1
Update test suite to nightly-2019-11-26
2019-11-25 23:51:43 -08:00
David Tolnay
bda561df4e
Update test suite to nightly-2019-10-04
2019-10-03 21:45:09 -04:00
David Tolnay
8955420baf
Update test suite to nightly-2019-10-02
2019-10-02 09:45:00 -04:00
David Tolnay
21ee256911
Update test suite to nightly-2019-09-30
2019-09-30 15:56:04 -04:00
David Tolnay
e46463e69f
Add tests for attribute parse errors
2019-09-07 22:57:27 -07:00
David Tolnay
273ecdb786
Update ui tests on nightly-2019-08-16
2019-08-16 11:30:49 -07:00
Zeyi Fan
4c29eea790
add attribute try_from
2019-05-11 23:31:24 -07:00
David Tolnay
140f9beee7
Switch ui tests to trybuild
2019-05-06 10:25:47 -07:00
David Tolnay
ce1686379d
Update test suite to nightly-2019-04-20
2019-04-19 22:54:59 -07:00
David Tolnay
bf27b28554
Simplify running update-references.sh
2019-02-17 10:58:46 -08:00
David Tolnay
ef9028d798
Remove conflict between flatten and skip
2019-02-15 18:39:15 -08:00
Lymia Aluysia
1ed228b92b
Implements alias annotation and allow multiple deserialization renames.
2019-01-15 11:15:01 -06:00
David Tolnay
95d0f437e3
Update ui tests to nightly 2019-01-01
2018-12-31 22:09:07 -05:00
David Tolnay
05ab569a80
Update ui tests to 2018 edition
2018-12-31 21:38:13 -05:00