David Tolnay
0961dbe9e7
Implement all the deserializer hints
...
This is a way to avoid instantiating all the Visitor methods on every
Visitor that is used with serde_json. If the Deserialize impl hints
that a boolean is required by invoking deserialize_bool, we don't also
need to instantiate its visit_u64 and visit_i64 and visit_f64 and
visit_str and visit_borrowed_str and visit_unit and visit_seq and
visit_map methods if the input contains some other type. Instead we
render the invalid_type error in a central place in the serde_json
Deserializer that is instantiated just once.
Improves compile time of json-benchmark by 30%.
2017-12-03 21:50:23 -08:00
David Tolnay
3549437f4a
Merge pull request #384 from bouk/stream-literals
...
Support top-level primitives in StreamDeserializer
2017-12-01 10:43:18 -08:00
Bouke van der Bijl
8b486189b7
Support top-level primitives in StreamDeserializer
2017-12-01 18:41:25 +01:00
David Tolnay
a4b2223762
Update ui tests to include nightly wording change
2017-11-28 22:00:25 -08:00
David Tolnay
ba3c859d58
Update stderr files for -Z external-macro-backtrace
2017-11-22 08:50:41 -08:00
David Tolnay
3dad80b406
Remove unnecessary 'static in consts
2017-10-29 22:05:11 -07:00
David Tolnay
deede62d1b
Add error banner when running test suite without nightly compiler
2017-10-22 15:57:00 -07:00
David Tolnay
2a91a88581
Update ui test failure message
2017-09-23 12:23:58 -07:00
fmoor
1b02cfec24
add ErrorCode::TrailingComma
2017-09-05 17:25:17 -07:00
fmoor
4afb61cc02
change error type for trailing commas, fixes #352
2017-09-05 17:25:17 -07:00
David Tolnay
79db7d4fe7
Optimize deserialize_ignored_any
2017-09-04 13:26:50 -07:00
David Tolnay
66b37bd0dd
Replace deprecated compiletest::default_config()
2017-08-24 00:23:16 -07:00
David Tolnay
1aa61215b2
Update ui error message
2017-07-20 23:26:29 -07:00
SeongChan Lee
7fbf18e95e
Implement PartialEq<bool> for Value
2017-07-13 04:12:38 +09:00
David Tolnay
58a7642d09
Update ui error message
2017-07-09 10:03:02 -07:00
David Tolnay
aca0df4ba7
Refresh the ui tests
2017-06-12 20:09:09 -07:00
David Tolnay
26c226750c
Exclude macros file from being tested by itself
2017-05-27 11:34:47 -07:00
David Tolnay
edf129130e
New error message in UI tests
2017-05-27 11:29:02 -07:00
Martin Tomasi
38e5b8f314
Fixed error in tests
2017-05-25 09:43:09 +02:00
Martin Tomasi
046b6e0968
Better invalid type error message (addresses issue #319 )
2017-05-21 17:32:34 +02:00
David Tolnay
c243fd8234
Update ui/parse_expr for latest nightly
2017-05-09 15:11:39 -07:00
David Tolnay
9231ffd19e
Add test for borrowed map key
2017-04-27 15:49:22 -07:00
David Tolnay
4cc9d87832
Treat non-integer key as a type error
2017-04-27 15:49:09 -07:00
David Tolnay
83e3ec0a45
Allow integers to be used as map keys again
2017-04-27 12:56:43 -07:00
David Tolnay
ac8b4fcb70
Remove deserialization from Iterator<Item = io::Result<u8>>
...
Use `from_reader` instead.
2017-04-19 18:51:17 -07:00
David Tolnay
4595e1a7bd
Format in rfc style
2017-04-18 14:29:29 -07:00
David Tolnay
1a41994b68
Keep up with serde 1.0 branch
2017-04-17 16:27:22 -07:00
David Tolnay
8797e77ffc
License boilerplate
2017-04-13 18:14:30 -07:00
David Tolnay
4e44e6c73d
Test byte offsets of stream
2017-04-13 09:27:23 -07:00
David Tolnay
0d3fd8b0be
Run the existing tests against every type of stream
2017-04-13 09:18:49 -07:00
David Tolnay
fb9827e0e9
Move stream tests to their own file
2017-04-13 09:05:24 -07:00
David Tolnay
0338c0e738
Test and document preserve_order feature
2017-04-11 21:40:57 -07:00
David Tolnay
e11f3d11ed
Combine serde_json and tests into one crate
2017-04-11 21:16:48 -07:00