David Tolnay
9f3dd3c7c4
Merge pull request #2163 from serde-rs/discord
...
Add discord invite links
2022-01-22 11:23:32 -08:00
David Tolnay
dd9b415ff9
Add discord invite links
2022-01-22 11:21:08 -08:00
David Tolnay
3bb4a5a4f6
Release 1.0.134
2022-01-20 22:22:30 -08:00
David Tolnay
6164627bea
Merge pull request #2159 from serde-rs/nonzero
...
Write better Visitor for NonZero integers
2022-01-20 22:22:02 -08:00
David Tolnay
51aaf496d4
Write better Visitor for NonZero integers
2022-01-20 22:15:16 -08:00
David Tolnay
bc66aeb0d3
Add tests of deserializing NonZero
2022-01-20 21:55:50 -08:00
David Tolnay
7e7044d457
Ignore clippy in number conversion tests
2022-01-20 21:38:31 -08:00
David Tolnay
5498dc0550
Add tests of num conversion errors
2022-01-20 21:37:16 -08:00
David Tolnay
ff04e8be9b
Improve coverage of num conversion in test suite
2022-01-20 21:16:50 -08:00
David Tolnay
69240c17c5
Eliminate macro from serialization tests
2022-01-20 20:37:08 -08:00
David Tolnay
237434f19c
Accept ?Sized references in assert_ser_tokens
2022-01-20 20:21:04 -08:00
David Tolnay
1833914346
Eliminate macro from deserialization error tests
2022-01-20 19:58:45 -08:00
David Tolnay
ab848060f2
Extract tests of deserialization errors to separate file
2022-01-20 19:58:01 -08:00
David Tolnay
7e39623f72
Implement test suite seq macro without tt muncher
2022-01-20 19:40:58 -08:00
David Tolnay
157dc44c51
Clean up test suite's macro formatting
2022-01-20 19:40:32 -08:00
David Tolnay
80d01a3a79
Tweak seq iterators in test suite
2022-01-20 19:40:13 -08:00
David Tolnay
343c060fc1
Adapt seq macro to not derail rustfmt
2022-01-20 19:38:51 -08:00
David Tolnay
21c1ab6c50
Format deserialization tests with rustfmt
2022-01-20 19:24:35 -08:00
David Tolnay
594ab7745d
Reimplement deserialization tests without macro
2022-01-20 18:09:48 -08:00
David Tolnay
8cf0ba7fe2
Make serde_test build script buildable with older rustc
2022-01-20 17:59:21 -08:00
David Tolnay
34b52c0b83
Include build script in packaged serde_test crate
2022-01-20 17:52:25 -08:00
David Tolnay
ec7ddc93cd
Include 128-bit integers in test suite unconditionally
2022-01-20 15:45:07 -08:00
David Tolnay
55a7cedd73
Invert all build.rs cfgs
...
This allows non-Cargo builds to generally not get involved in cfgs. As
long as one is using a reasonably recent toolchain, no cfgs need to be
set and you'll get a fully-featured build.
2022-01-01 21:09:49 -08:00
David Tolnay
7af97c66b8
Release 1.0.133
2022-01-01 13:16:35 -08:00
David Tolnay
1f57084365
Merge pull request #2148 from serde-rs/deserializecontent
...
Optimize deserialization of recursive buffered types
2022-01-01 13:16:02 -08:00
David Tolnay
56bd369422
Optimize deserialization of recursive buffered types
2022-01-01 13:01:38 -08:00
David Tolnay
ff259ec66b
Detect warnings in CI
2022-01-01 11:52:55 -08:00
David Tolnay
6c54aafeb9
Document the atomic ordering in the Serialize impl
2021-12-23 11:44:31 -08:00
David Tolnay
5d41404e67
No need for the SeqCst load in test suite
2021-12-23 11:42:41 -08:00
David Tolnay
1eccb3c350
Resolve unnecessary_to_owned clippy lint in test suite
...
error: unnecessary use of `to_vec`
--> test_suite/tests/test_de.rs:251:12
|
251 | .chain(ignorable_tokens.to_vec().into_iter())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `ignorable_tokens.iter().copied()`
|
= note: `-D clippy::unnecessary-to-owned` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
2021-12-17 18:25:04 -08:00
David Tolnay
77ae1c3bf7
Release 1.0.132
2021-12-16 11:06:42 -08:00
David Tolnay
b85e28166c
Update path to rustc target spec files
2021-12-16 11:05:58 -08:00
David Tolnay
0508cb50fc
Merge pull request #2141 from Avimitin/risc-v
...
Enable atomic64 on riscv64 arch
2021-12-16 11:05:14 -08:00
Avimitin
84fdc7df69
Enable atomic64 on riscv64 arch
...
Signed-off-by: Avimitin <avimitin@gmail.com>
2021-12-14 20:30:28 +08:00
David Tolnay
ab1ca04b2e
Release 1.0.131
2021-12-08 18:47:15 -08:00
David Tolnay
fb2fe409c8
Touch up PR 2116
2021-12-08 18:44:41 -08:00
David Tolnay
549fac7235
Merge pull request #2116 from tyranron/fix-unused-results
...
Fix `unused_results` complaining rustc lint in codegen for adjacently tagged enum
2021-12-08 18:43:31 -08:00
David Tolnay
c375d8b19b
Merge pull request #2124 from dtolnay/cbor
...
Change cbor link to new repo
2021-11-26 14:48:40 -08:00
David Tolnay
6cf507f808
Change cbor link to new repo
2021-11-26 14:43:09 -08:00
David Tolnay
c3c1641c06
Remove workaround for redundant_field_names Clippy bug
2021-11-04 20:23:25 -07:00
David Tolnay
1fcda0ebdb
Enable pedantic lints on test suite in CI
2021-11-04 20:21:48 -07:00
David Tolnay
8f16ac0a94
Move deny(clippy) to command line arguments in the CI job
2021-11-04 20:09:35 -07:00
David Tolnay
737f78c315
Ignore enum_variant_names Clippy lint in test suite
...
error: all variants have the same prefix: `Serialize`
--> test_suite/tests/test_macros.rs:1741:5
|
1741 | / enum E {
1742 | | #[serde(rename_all = "camelCase")]
1743 | | Serialize {
1744 | | serialize: bool,
... |
1756 | | },
1757 | | }
| |_____^
|
= note: `-D clippy::enum-variant-names` implied by `-D clippy::all`
= help: remove the prefixes and use full paths to the variants instead of glob imports
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
2021-11-04 20:06:02 -07:00
David Tolnay
4a97386cb9
Clippy if_then_panic lint has been renamed to manual_assert
2021-11-04 19:57:14 -07:00
tyranron
5b32217877
Fix unused_results
complaining rustc lint in codegen for adjacently tagged enum
2021-10-29 14:13:26 +03:00
David Tolnay
5b140361a3
Merge pull request #2102 from atouchet/url
...
Update URL
2021-10-14 16:33:22 -07:00
Alex Touchet
678351eac7
Update URL
2021-10-14 16:27:49 -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
33b2677384
Suppress broken semicolon_if_nothing_returned lint
...
https://github.com/rust-lang/rust-clippy/issues/7768
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:849:1
|
849 | / seq_impl!(
850 | | BinaryHeap<T: Ord>,
851 | | seq,
852 | | BinaryHeap::clear,
... |
855 | | BinaryHeap::push
856 | | );
| |__^
|
note: the lint level is defined here
--> serde/src/lib.rs:97:52
|
97 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
| ^^^^^^^^^^^^^^^
= note: `#[deny(clippy::semicolon_if_nothing_returned)]` implied by `#[deny(clippy::pedantic)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
849 + seq_impl!(
850 + BinaryHeap<T: Ord>,
851 + seq,
852 + BinaryHeap::clear,
853 + BinaryHeap::with_capacity(size_hint::cautious(seq.size_hint())),
854 + BinaryHeap::reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:859:1
|
859 | / seq_impl!(
860 | | BTreeSet<T: Eq + Ord>,
861 | | seq,
862 | | BTreeSet::clear,
... |
865 | | BTreeSet::insert
866 | | );
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
859 + seq_impl!(
860 + BTreeSet<T: Eq + Ord>,
861 + seq,
862 + BTreeSet::clear,
863 + BTreeSet::new(),
864 + nop_reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:869:1
|
869 | / seq_impl!(
870 | | LinkedList<T>,
871 | | seq,
872 | | LinkedList::clear,
... |
875 | | LinkedList::push_back
876 | | );
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
869 + seq_impl!(
870 + LinkedList<T>,
871 + seq,
872 + LinkedList::clear,
873 + LinkedList::new(),
874 + nop_reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:879:1
|
879 | / seq_impl!(
880 | | HashSet<T: Eq + Hash, S: BuildHasher + Default>,
881 | | seq,
882 | | HashSet::clear,
883 | | HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()),
884 | | HashSet::reserve,
885 | | HashSet::insert);
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
879 + seq_impl!(
880 + HashSet<T: Eq + Hash, S: BuildHasher + Default>,
881 + seq,
882 + HashSet::clear,
883 + HashSet::with_capacity_and_hasher(size_hint::cautious(seq.size_hint()), S::default()),
884 + HashSet::reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:888:1
|
888 | / seq_impl!(
889 | | VecDeque<T>,
890 | | seq,
891 | | VecDeque::clear,
... |
894 | | VecDeque::push_back
895 | | );
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
888 + seq_impl!(
889 + VecDeque<T>,
890 + seq,
891 + VecDeque::clear,
892 + VecDeque::with_capacity(size_hint::cautious(seq.size_hint())),
893 + VecDeque::reserve,
...
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:1300:1
|
1300 | / map_impl!(
1301 | | BTreeMap<K: Ord, V>,
1302 | | map,
1303 | | BTreeMap::new());
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
1300 + map_impl!(
1301 + BTreeMap<K: Ord, V>,
1302 + map,
1303 + BTreeMap::new());;
|
error: consider adding a `;` to the last statement for consistent formatting
--> serde/src/de/impls.rs:1306:1
|
1306 | / map_impl!(
1307 | | HashMap<K: Eq + Hash, V, S: BuildHasher + Default>,
1308 | | map,
1309 | | HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default()));
| |___________________________________________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
help: add a `;` here
|
1306 + map_impl!(
1307 + HashMap<K: Eq + Hash, V, S: BuildHasher + Default>,
1308 + map,
1309 + HashMap::with_capacity_and_hasher(size_hint::cautious(map.size_hint()), S::default()));;
|
2021-10-04 23:57:05 -04:00