David Tolnay
8463bfc1e5
Remove as yet unrequested range impls
2019-02-01 21:04:06 -08:00
Dmitry Shlagoff
0def7da5a8
Impl Ser/De for RangeFrom, RangeTo, RangeToInclusive
2019-01-29 20:29:14 +07:00
Dmitry Shlagoff
4bb45c8252
Impl Serialize for Bound<T>
2019-01-29 15:20:27 +07:00
Lymia Aluysia
1ed228b92b
Implements alias annotation and allow multiple deserialization renames.
2019-01-15 11:15:01 -06:00
David Tolnay
b605cd1bb9
Make compiletest setup consistent with serde_json
2019-01-12 16:22:23 -08:00
David Tolnay
95d0f437e3
Update ui tests to nightly 2019-01-01
2018-12-31 22:09:07 -05:00
David Tolnay
c95ee3968a
Format with rustfmt 2018-12-10
2018-12-31 22:09:06 -05:00
David Tolnay
c22dd4ada5
Suppress trivially_copy_pass_by_ref lint on fn is_zero
2018-12-31 22:09:05 -05:00
David Tolnay
727a40fc5a
Update test suite to use tool attrs
2018-12-31 21:59:40 -05:00
David Tolnay
294dccc5be
Update test suite to 2018 edition
2018-12-31 21:53:37 -05:00
David Tolnay
da346a8878
Replace try!
macro in test suite
2018-12-31 21:46:14 -05:00
David Tolnay
05ab569a80
Update ui tests to 2018 edition
2018-12-31 21:38:13 -05:00
David Tolnay
ab3f4971f0
Move compiletest out of the unstable feature flag
2018-12-31 21:28:39 -05:00
David Tolnay
47e238aa13
Add missing imports in ui tests
...
There is a new fallback as of nightly-2018-12-29 that makes these emit a
new error unrelated to Serde.
2018-12-29 00:19:29 -05:00
David Tolnay
e49b6c708b
Add main function to ui tests without main
...
These emit a new error not relevant to Serde as of nightly-2018-12-29.
2018-12-29 00:18:55 -05:00
David Tolnay
eb7250792b
Format with rustfmt 2018-12-10
2018-12-28 12:19:32 -05:00
David Tolnay
7e5066b878
Merge pull request #1450 from motu42/master
...
Bug fix to support the tag attribute on braced structs with zero fields
2018-12-27 21:48:14 -05:00
Johannes Willbold
889e17816f
Bug fix for #1449
...
Modified serialize_struct_as_struct.
Added test test_internally_tagged_braced_struct_with_zero_fields
2018-12-28 02:50:24 +01:00
David Tolnay
32728d2f1d
Format with rustfmt 2018-12-10
2018-12-27 19:52:26 -05:00
David Tolnay
807a097387
Fix spelling in ui test name
2018-12-27 19:51:53 -05:00
Johannes Willbold
2359417804
Added ui tests, Limited serde(tag = "...") to structs with named field
...
Added ui test struct-representation/internally-tagged-unit
Added ui test struct-representation/internally-tagged-tuple
Limited the serde(tag = "...") to enums and structs with named field
2018-12-28 01:29:33 +01:00
Johannes Willbold
8aa5c2b45d
Removed deprected ui/enum-representation/internally-tagged-struct test
2018-12-27 20:53:08 +01:00
Johannes Willbold
414fd694c0
Allowed serde(tag="...") on structs
...
Added test test_internally_tagged_struct
Renamed EnumTag to TagType as it now also used for structs
Modified serialize_struct_as_struct
2018-12-27 20:18:36 +01:00
David Tolnay
16daba8ea9
Format with rustfmt 2018-11-30
2018-12-10 22:09:34 -08:00
David Tolnay
8b4074ee77
Tests for tuple default attribute
2018-12-10 22:09:33 -08:00
hcpl
14a3da9b16
Improve UI test coverage
...
With this commit I believe I've covered all `compile_error!`-based
errors.
2018-11-30 03:07:31 +02:00
hcpl
034db9f20f
Improve overall quality of compile_error!
errors
...
Also updates UI tests.
2018-11-30 02:51:49 +02:00
David Tolnay
58b3af4c29
Copyright/license headers
...
The following changes are included:
- Delete per-file license notices at the top of each file.
- Delete the first paragraph of LICENSE-MIT (an inaccurate
pseudo-copyright line), leaving only the text of the MIT license.
Nothing about the license of Serde code has changed, only our
understanding of how to correctly communicate that license has changed.
This mirrors an equivalent change being applied in the rust-lang/rust
repository.
2018-11-24 15:53:09 -08:00
David Tolnay
4821d09a48
Move all compile-fail tests to ui tests
...
The update-references.sh script makes these much easier to update in
bulk compared to compile-fail tests.
2018-11-24 15:43:19 -08:00
David Tolnay
b3d9d51b51
Simplify compiletest setup
2018-11-24 15:35:49 -08:00
David Tolnay
9afc5fef11
Format with rustfmt 1.0.0-nightly
2018-11-21 01:13:17 -08:00
David Tolnay
f1e8dcf38e
Run test suite on asmjs
2018-09-15 15:25:55 -07:00
David Tolnay
66a9ccb10e
Ignore renamed_and_removed_lints lint
...
The recommended replacement involving clippy::all has not been
stabilized yet.
2018-09-11 23:05:33 -07:00
David Tolnay
53fe1b328e
Format with rustfmt 0.99.4
2018-09-11 23:00:08 -07:00
roblabla
0156f1355a
Remove obsolete compile-fail test
2018-09-10 17:15:22 +00:00
roblabla
7870b58356
Add tests for serde(other) in enum
2018-09-10 16:25:02 +00:00
David Tolnay
2a4b8ce42d
Fix panic deserializing flattened any after flattened struct
2018-09-08 16:55:34 -07:00
David Reid
389b9b5fe7
Add a test for an internally tagged unit enum flattened with a second internally tagged unit enum.
2018-09-06 14:55:10 -07:00
David Reid
27478b6f71
Internally tagged unit enum variants should ignore unknown fields.
2018-09-06 14:29:49 -07:00
David Tolnay
d0464fbff7
Add Emscripten build in Travis
2018-09-02 12:34:13 -07:00
David Tolnay
d23a40c1bb
Format with rustfmt 0.99.2
2018-09-01 23:03:41 -07:00
David Tolnay
5b7b8abf9f
Move some compile-fail errors based on proc-macro2 update
2018-08-28 20:35:49 -07:00
David Tolnay
1175d54fb7
Stabilize raw_identifiers
2018-08-24 19:49:13 -04:00
David Tolnay
a3ae14d090
Test raw identifiers
2018-08-22 21:09:37 -04:00
David Tolnay
5985b7edaf
Format with rustfmt 0.99.2
2018-08-14 19:59:20 -07:00
David Tolnay
d28a0e66c8
Fix old reference to serde_codegen
2018-08-12 10:54:59 -07:00
David Tolnay
0ca4db1616
Move untagged borrow test case into codegen tests
2018-08-12 10:54:29 -07:00
David Tolnay
72b3438dfc
Merge pull request #1338 from toidiu/ak-untagged-enum
...
test borrowing untagged enum
2018-08-12 10:49:15 -07:00
David Tolnay
e26960f7f8
Remove useless run-pass test
...
When originally added, this test used to contain a `#![plugin(clippy)]`.
This was removed at some point along the way, at which point this test
no longer tests anything. It prints:
warning: unknown lint: `identity_op`
--> src/main.rs:1:9
|
1 | #![deny(identity_op)]
| ^^^^^^^^^^^
|
= note: #[warn(unknown_lints)] on by default
which is swallowed and ignored by compiletest.
Nowadays Clippy handles warnings inside of macro expanded code
intelligently and this is something they would be responsible for
testing.
2018-08-06 22:57:46 -07:00
David Tolnay
28db9d4989
Format with rustfmt 0.99.1
2018-08-06 22:40:28 -07:00