2018-08-12 12:54:53 -05:00
|
|
|
|
// These just test that serde_derive is able to produce code that compiles
|
2016-05-15 17:54:20 -05:00
|
|
|
|
// successfully when there are a variety of generics and non-(de)serializable
|
|
|
|
|
// types involved.
|
2016-05-07 14:33:59 -05:00
|
|
|
|
|
2017-09-09 13:34:08 -05:00
|
|
|
|
#![deny(warnings)]
|
2020-06-26 23:32:40 -05:00
|
|
|
|
#![allow(
|
2024-08-07 20:19:46 -05:00
|
|
|
|
confusable_idents,
|
2020-06-26 23:32:40 -05:00
|
|
|
|
unknown_lints,
|
|
|
|
|
mixed_script_confusables,
|
Ignore derive_partial_eq_without_eq clippy lint
error: you are deriving `PartialEq` and can implement `Eq`
--> serde/src/de/value.rs:51:17
|
51 | #[derive(Clone, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= note: `-D clippy::derive-partial-eq-without-eq` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> serde_derive/src/internals/case.rs:13:23
|
13 | #[derive(Copy, Clone, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/unstable/mod.rs:6:21
|
6 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_ignored_any.rs:7:10
|
7 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_identifier.rs:7:34
|
7 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_identifier.rs:24:34
|
24 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_identifier.rs:41:34
|
41 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_identifier.rs:59:34
|
59 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_ser.rs:46:10
|
46 | #[derive(PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_value.rs:11:34
|
11 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de_error.rs:15:23
|
15 | #[derive(Copy, Clone, PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de_error.rs:18:10
|
18 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de_error.rs:26:10
|
26 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de_error.rs:34:10
|
34 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de_error.rs:41:19
|
41 | #[derive(Default, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de_error.rs:60:10
|
60 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_borrow.rs:70:34
|
70 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_borrow.rs:97:34
|
97 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_borrow.rs:106:34
|
106 | #[derive(Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:43:23
|
43 | #[derive(Copy, Clone, PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:46:10
|
46 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:49:10
|
49 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:52:10
|
52 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:76:10
|
76 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:82:10
|
82 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:102:10
|
102 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:109:19
|
109 | #[derive(Default, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:128:10
|
128 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:135:10
|
135 | #[derive(PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_de.rs:185:14
|
185 | #[derive(PartialEq, Debug, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:25:17
|
25 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:110:17
|
110 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:580:21
|
580 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:607:21
|
607 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:681:21
|
681 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:684:21
|
684 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:816:21
|
816 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:976:21
|
976 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1027:21
|
1027 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1273:21
|
1273 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1342:21
|
1342 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1413:21
|
1413 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1450:21
|
1450 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1474:21
|
1474 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1509:21
|
1509 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1543:21
|
1543 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1601:21
|
1601 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1743:45
|
1743 | #[derive(Serialize, Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1763:45
|
1763 | #[derive(Serialize, Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1770:45
|
1770 | #[derive(Serialize, Deserialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1870:21
|
1870 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_macros.rs:1888:21
|
1888 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:108:17
|
108 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:124:17
|
124 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:147:17
|
147 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:344:17
|
344 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:394:17
|
394 | #[derive(Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:413:17
|
413 | #[derive(Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:458:17
|
458 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:512:17
|
512 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:520:17
|
520 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:528:17
|
528 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:647:17
|
647 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_gen.rs:835:17
|
835 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:675:17
|
675 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1047:17
|
1047 | #[derive(Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1050:17
|
1050 | #[derive(Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1196:17
|
1196 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1514:17
|
1514 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1548:41
|
1548 | #[derive(Clone, Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1566:41
|
1566 | #[derive(Clone, Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1600:30
|
1600 | #[derive(Clone, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1803:21
|
1803 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1843:21
|
1843 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1852:21
|
1852 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:1947:21
|
1947 | #[derive(Debug, PartialEq, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2003:21
|
2003 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2037:21
|
2037 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2074:45
|
2074 | #[derive(Deserialize, Serialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2080:45
|
2080 | #[derive(Deserialize, Serialize, Debug, PartialEq)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2157:38
|
2157 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2193:38
|
2193 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2200:38
|
2200 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2240:38
|
2240 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2279:38
|
2279 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2316:38
|
2316 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2359:38
|
2359 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2390:38
|
2390 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2421:38
|
2421 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2426:38
|
2426 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2483:38
|
2483 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2507:38
|
2507 | #[derive(Serialize, Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2521:27
|
2521 | #[derive(Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2552:27
|
2552 | #[derive(Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2558:27
|
2558 | #[derive(Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2586:14
|
2586 | #[derive(PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2624:27
|
2624 | #[derive(Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
error: you are deriving `PartialEq` and can implement `Eq`
--> test_suite/tests/test_annotations.rs:2647:27
|
2647 | #[derive(Deserialize, PartialEq, Debug)]
| ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq
2022-05-21 22:36:25 -05:00
|
|
|
|
clippy::derive_partial_eq_without_eq,
|
2023-02-10 21:14:37 -06:00
|
|
|
|
clippy::extra_unused_type_parameters,
|
2021-11-04 22:21:43 -05:00
|
|
|
|
clippy::items_after_statements,
|
|
|
|
|
clippy::missing_errors_doc,
|
|
|
|
|
clippy::missing_panics_doc,
|
|
|
|
|
clippy::must_use_candidate,
|
Ignore buggy nonstandard_macro_braces clippy lint
Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
error: use of irregular braces for `format_args!` macro
--> test_suite/tests/test_gen.rs:528:25
|
528 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all`
help: consider writing `Deserialize`
--> test_suite/tests/test_gen.rs:528:25
|
528 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error: use of irregular braces for `format_args!` macro
--> test_suite/tests/test_annotations.rs:1791:43
|
1791 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all`
help: consider writing `Deserialize`
--> test_suite/tests/test_annotations.rs:1791:43
|
1791 | #[derive(Debug, PartialEq, Serialize, Deserialize)]
| ^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-07-02 22:57:57 -05:00
|
|
|
|
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
|
|
|
|
|
clippy::nonstandard_macro_braces,
|
2021-01-25 15:25:53 -06:00
|
|
|
|
clippy::ptr_arg,
|
2021-11-04 22:21:43 -05:00
|
|
|
|
clippy::too_many_lines,
|
2022-04-30 23:30:38 -05:00
|
|
|
|
clippy::trivially_copy_pass_by_ref,
|
|
|
|
|
clippy::type_repetition_in_bounds
|
2020-06-26 23:32:40 -05:00
|
|
|
|
)]
|
2024-08-07 20:16:48 -05:00
|
|
|
|
#![deny(clippy::collection_is_never_read)]
|
2017-02-24 17:32:13 -06:00
|
|
|
|
|
2023-07-19 10:54:11 -05:00
|
|
|
|
use serde::de::{Deserialize, DeserializeOwned, Deserializer};
|
|
|
|
|
use serde::ser::{Serialize, Serializer};
|
|
|
|
|
use serde_derive::{Deserialize, Serialize};
|
2016-08-19 10:12:38 -05:00
|
|
|
|
use std::borrow::Cow;
|
2016-07-22 01:22:38 -05:00
|
|
|
|
use std::marker::PhantomData;
|
2017-11-29 21:45:22 -06:00
|
|
|
|
use std::option::Option as StdOption;
|
2017-02-01 11:42:12 -06:00
|
|
|
|
use std::result::Result as StdResult;
|
2016-07-22 01:22:38 -05:00
|
|
|
|
|
2016-09-07 18:25:22 -05:00
|
|
|
|
// Try to trip up the generated code if it fails to use fully qualified paths.
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
struct Result;
|
2017-02-01 11:42:12 -06:00
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
struct Ok;
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
struct Err;
|
2017-11-29 21:45:22 -06:00
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
struct Option;
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
struct Some;
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
struct None;
|
2016-09-07 18:25:22 -05:00
|
|
|
|
|
2016-05-07 14:33:59 -05:00
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
#[test]
|
|
|
|
|
fn test_gen() {
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct With<T> {
|
|
|
|
|
t: T,
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(serialize_with = "ser_x", deserialize_with = "de_x")]
|
|
|
|
|
x: X,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
}
|
|
|
|
|
assert::<With<i32>>();
|
|
|
|
|
|
2017-02-14 19:36:50 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct WithTogether<T> {
|
|
|
|
|
t: T,
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(with = "both_x")]
|
|
|
|
|
x: X,
|
2017-02-14 19:36:50 -06:00
|
|
|
|
}
|
|
|
|
|
assert::<WithTogether<i32>>();
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct WithRef<'a, T: 'a> {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
t: StdOption<&'a T>,
|
|
|
|
|
#[serde(serialize_with = "ser_x", deserialize_with = "de_x")]
|
|
|
|
|
x: X,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
}
|
|
|
|
|
assert::<WithRef<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct PhantomX {
|
|
|
|
|
x: PhantomData<X>,
|
|
|
|
|
}
|
|
|
|
|
assert::<PhantomX>();
|
|
|
|
|
|
2016-07-22 11:05:36 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct PhantomT<T> {
|
|
|
|
|
t: PhantomData<T>,
|
|
|
|
|
}
|
|
|
|
|
assert::<PhantomT<X>>();
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct NoBounds<T> {
|
|
|
|
|
t: T,
|
2017-11-29 21:45:22 -06:00
|
|
|
|
option: StdOption<T>,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
boxed: Box<T>,
|
2017-11-29 21:45:22 -06:00
|
|
|
|
option_boxed: StdOption<Box<T>>,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
}
|
|
|
|
|
assert::<NoBounds<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
enum EnumWith<T> {
|
|
|
|
|
Unit,
|
2018-04-30 03:41:22 -05:00
|
|
|
|
Newtype(#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X),
|
2016-07-22 10:49:51 -05:00
|
|
|
|
Tuple(
|
|
|
|
|
T,
|
2018-04-30 03:41:22 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X,
|
2017-04-13 14:28:23 -05:00
|
|
|
|
),
|
2016-07-22 10:49:51 -05:00
|
|
|
|
Struct {
|
|
|
|
|
t: T,
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(serialize_with = "ser_x", deserialize_with = "de_x")]
|
|
|
|
|
x: X,
|
2017-04-13 14:28:23 -05:00
|
|
|
|
},
|
2016-07-22 10:49:51 -05:00
|
|
|
|
}
|
|
|
|
|
assert::<EnumWith<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
2017-04-13 14:28:23 -05:00
|
|
|
|
struct MultipleRef<'a, 'b, 'c, T>
|
|
|
|
|
where
|
|
|
|
|
T: 'c,
|
|
|
|
|
'c: 'b,
|
|
|
|
|
'b: 'a,
|
|
|
|
|
{
|
2016-07-22 10:49:51 -05:00
|
|
|
|
t: T,
|
|
|
|
|
rrrt: &'a &'b &'c T,
|
|
|
|
|
}
|
|
|
|
|
assert_ser::<MultipleRef<i32>>();
|
2016-05-07 14:33:59 -05:00
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2018-04-30 03:41:22 -05:00
|
|
|
|
struct Newtype(#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X);
|
2016-07-22 10:49:51 -05:00
|
|
|
|
assert::<Newtype>();
|
2016-05-19 01:46:06 -05:00
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct Tuple<T>(
|
|
|
|
|
T,
|
2018-04-30 03:41:22 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x", deserialize_with = "de_x")] X,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
);
|
|
|
|
|
assert::<Tuple<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
enum TreeNode<D> {
|
|
|
|
|
Split {
|
|
|
|
|
left: Box<TreeNode<D>>,
|
|
|
|
|
right: Box<TreeNode<D>>,
|
|
|
|
|
},
|
2017-12-23 22:13:08 -06:00
|
|
|
|
Leaf {
|
|
|
|
|
data: D,
|
|
|
|
|
},
|
2016-07-22 10:49:51 -05:00
|
|
|
|
}
|
|
|
|
|
assert::<TreeNode<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct ListNode<D> {
|
2016-05-21 00:03:20 -05:00
|
|
|
|
data: D,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
next: Box<ListNode<D>>,
|
|
|
|
|
}
|
|
|
|
|
assert::<ListNode<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct RecursiveA {
|
|
|
|
|
b: Box<RecursiveB>,
|
|
|
|
|
}
|
|
|
|
|
assert::<RecursiveA>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
enum RecursiveB {
|
|
|
|
|
A(RecursiveA),
|
|
|
|
|
}
|
|
|
|
|
assert::<RecursiveB>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct RecursiveGenericA<T> {
|
|
|
|
|
t: T,
|
|
|
|
|
b: Box<RecursiveGenericB<T>>,
|
|
|
|
|
}
|
|
|
|
|
assert::<RecursiveGenericA<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
enum RecursiveGenericB<T> {
|
|
|
|
|
T(T),
|
|
|
|
|
A(RecursiveGenericA<T>),
|
|
|
|
|
}
|
|
|
|
|
assert::<RecursiveGenericB<i32>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
|
|
|
|
struct OptionStatic<'a> {
|
2017-11-29 21:45:22 -06:00
|
|
|
|
a: StdOption<&'a str>,
|
|
|
|
|
b: StdOption<&'static str>,
|
2016-07-22 10:49:51 -05:00
|
|
|
|
}
|
|
|
|
|
assert_ser::<OptionStatic>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-12-23 22:13:08 -06:00
|
|
|
|
#[serde(bound = "D: SerializeWith + DeserializeWith")]
|
2016-07-22 10:49:51 -05:00
|
|
|
|
struct WithTraits1<D, E> {
|
2018-04-30 03:41:22 -05:00
|
|
|
|
#[serde(
|
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with"
|
|
|
|
|
)]
|
2016-07-22 10:49:51 -05:00
|
|
|
|
d: D,
|
2018-04-30 03:41:22 -05:00
|
|
|
|
#[serde(
|
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with",
|
|
|
|
|
bound = "E: SerializeWith + DeserializeWith"
|
|
|
|
|
)]
|
2016-07-22 10:49:51 -05:00
|
|
|
|
e: E,
|
|
|
|
|
}
|
|
|
|
|
assert::<WithTraits1<X, X>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2018-11-21 03:13:17 -06:00
|
|
|
|
#[serde(bound(serialize = "D: SerializeWith", deserialize = "D: DeserializeWith"))]
|
2016-07-22 10:49:51 -05:00
|
|
|
|
struct WithTraits2<D, E> {
|
2018-04-30 03:41:22 -05:00
|
|
|
|
#[serde(
|
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with"
|
|
|
|
|
)]
|
2016-07-22 10:49:51 -05:00
|
|
|
|
d: D,
|
2018-04-30 03:41:22 -05:00
|
|
|
|
#[serde(
|
2018-07-08 21:02:44 -05:00
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
bound(serialize = "E: SerializeWith")
|
2018-04-30 03:41:22 -05:00
|
|
|
|
)]
|
|
|
|
|
#[serde(
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with",
|
|
|
|
|
bound(deserialize = "E: DeserializeWith")
|
|
|
|
|
)]
|
2016-07-22 10:49:51 -05:00
|
|
|
|
e: E,
|
|
|
|
|
}
|
|
|
|
|
assert::<WithTraits2<X, X>>();
|
2016-08-19 10:12:38 -05:00
|
|
|
|
|
2018-05-08 12:07:17 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(bound = "D: SerializeWith + DeserializeWith")]
|
|
|
|
|
enum VariantWithTraits1<D, E> {
|
|
|
|
|
#[serde(
|
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with"
|
|
|
|
|
)]
|
|
|
|
|
D(D),
|
|
|
|
|
#[serde(
|
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with",
|
|
|
|
|
bound = "E: SerializeWith + DeserializeWith"
|
|
|
|
|
)]
|
|
|
|
|
E(E),
|
|
|
|
|
}
|
|
|
|
|
assert::<VariantWithTraits1<X, X>>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2018-11-21 03:13:17 -06:00
|
|
|
|
#[serde(bound(serialize = "D: SerializeWith", deserialize = "D: DeserializeWith"))]
|
2018-05-08 12:07:17 -05:00
|
|
|
|
enum VariantWithTraits2<D, E> {
|
|
|
|
|
#[serde(
|
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with"
|
|
|
|
|
)]
|
|
|
|
|
D(D),
|
|
|
|
|
#[serde(
|
2018-07-08 21:02:44 -05:00
|
|
|
|
serialize_with = "SerializeWith::serialize_with",
|
|
|
|
|
bound(serialize = "E: SerializeWith")
|
2018-05-08 12:07:17 -05:00
|
|
|
|
)]
|
|
|
|
|
#[serde(
|
|
|
|
|
deserialize_with = "DeserializeWith::deserialize_with",
|
|
|
|
|
bound(deserialize = "E: DeserializeWith")
|
|
|
|
|
)]
|
|
|
|
|
E(E),
|
|
|
|
|
}
|
|
|
|
|
assert::<VariantWithTraits2<X, X>>();
|
|
|
|
|
|
Add a test of serde(bound = "") attribute
Without serde(bound = ""), serde_derive infers a bound of `T: Serialize`
for the generated Serialize impl and `T: Deserialize<'de> + Default` for
the Deserialize impl. `X` implements none of these so the generated code
would fail to compile.
error[E0277]: the trait bound `X: Serialize` is not satisfied
--> test_suite/tests/test_gen.rs:268:14
|
268 | assert::<PhantomDataWrapper<X>>();
| ^^^^^^^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `X`
|
= help: the following other types implement trait `Serialize`:
&'a T
&'a mut T
()
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
(T0, T1, T2, T3, T4, T5)
and 248 others
note: required for `PhantomDataWrapper<X>` to implement `Serialize`
--> test_suite/tests/test_gen.rs:262:14
|
262 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
263 | //#[serde(bound = "")]
264 | struct PhantomDataWrapper<T> {
| ^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `assert`
--> test_suite/tests/test_gen.rs:767:14
|
767 | fn assert<T: Serialize + DeserializeOwned>() {}
| ^^^^^^^^^ required by this bound in `assert`
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `X: Deserialize<'_>` is not satisfied
--> test_suite/tests/test_gen.rs:268:14
|
268 | assert::<PhantomDataWrapper<X>>();
| ^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `X`
|
= help: the following other types implement trait `Deserialize<'de>`:
<&'a Path as Deserialize<'de>>
<&'a [u8] as Deserialize<'de>>
<&'a str as Deserialize<'de>>
<() as Deserialize<'de>>
<(T0, T1) as Deserialize<'de>>
<(T0, T1, T2) as Deserialize<'de>>
<(T0, T1, T2, T3) as Deserialize<'de>>
<(T0, T1, T2, T3, T4) as Deserialize<'de>>
and 331 others
note: required for `PhantomDataWrapper<X>` to implement `for<'de> Deserialize<'de>`
--> test_suite/tests/test_gen.rs:262:25
|
262 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
263 | //#[serde(bound = "")]
264 | struct PhantomDataWrapper<T> {
| ^^^^^^^^^^^^^^^^^^^^^
= note: required for `PhantomDataWrapper<X>` to implement `DeserializeOwned`
note: required by a bound in `assert`
--> test_suite/tests/test_gen.rs:767:26
|
767 | fn assert<T: Serialize + DeserializeOwned>() {}
| ^^^^^^^^^^^^^^^^ required by this bound in `assert`
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `X: Default` is not satisfied
--> test_suite/tests/test_gen.rs:268:14
|
268 | assert::<PhantomDataWrapper<X>>();
| ^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `X`
|
note: required for `PhantomDataWrapper<X>` to implement `for<'de> Deserialize<'de>`
--> test_suite/tests/test_gen.rs:262:25
|
262 | #[derive(Serialize, Deserialize)]
| ^^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
263 | //#[serde(bound = "")]
264 | struct PhantomDataWrapper<T> {
| ^^^^^^^^^^^^^^^^^^^^^
= note: required for `PhantomDataWrapper<X>` to implement `DeserializeOwned`
note: required by a bound in `assert`
--> test_suite/tests/test_gen.rs:767:26
|
767 | fn assert<T: Serialize + DeserializeOwned>() {}
| ^^^^^^^^^^^^^^^^ required by this bound in `assert`
= note: this error originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `X` with `#[derive(Default)]`
|
779 | #[derive(Default)]
|
2023-03-08 21:11:15 -06:00
|
|
|
|
type PhantomDataAlias<T> = PhantomData<T>;
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(bound = "")]
|
|
|
|
|
struct PhantomDataWrapper<T> {
|
|
|
|
|
#[serde(default)]
|
|
|
|
|
field: PhantomDataAlias<T>,
|
|
|
|
|
}
|
|
|
|
|
assert::<PhantomDataWrapper<X>>();
|
|
|
|
|
|
2016-08-19 10:12:38 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct CowStr<'a>(Cow<'a, str>);
|
|
|
|
|
assert::<CowStr>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-03-27 00:56:58 -05:00
|
|
|
|
#[serde(bound(deserialize = "T::Owned: DeserializeOwned"))]
|
2016-08-19 10:12:38 -05:00
|
|
|
|
struct CowT<'a, T: ?Sized + 'a + ToOwned>(Cow<'a, T>);
|
|
|
|
|
assert::<CowT<str>>();
|
2016-09-02 13:42:26 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct EmptyStruct {}
|
|
|
|
|
assert::<EmptyStruct>();
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
enum EmptyEnumVariant {
|
|
|
|
|
EmptyStruct {},
|
|
|
|
|
}
|
|
|
|
|
assert::<EmptyEnumVariant>();
|
2017-01-10 03:20:01 -06:00
|
|
|
|
|
2017-03-08 23:02:15 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct NonAsciiIdents {
|
2020-04-19 19:32:11 -05:00
|
|
|
|
σ: f64,
|
2017-01-10 03:20:01 -06:00
|
|
|
|
}
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct EmptyBraced {}
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct EmptyBracedDenyUnknown {}
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct BracedSkipAll {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
f: u8,
|
2017-01-11 13:02:24 -06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct BracedSkipAllDenyUnknown {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
f: u8,
|
2017-01-11 13:02:24 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-08 23:02:15 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct EmptyTuple();
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
2017-03-08 23:02:15 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-01-11 13:02:24 -06:00
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct EmptyTupleDenyUnknown();
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct TupleSkipAll(#[serde(skip_deserializing)] u8);
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum EmptyEnum {}
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum EmptyEnumDenyUnknown {}
|
2017-01-11 13:02:24 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum EnumSkipAll {
|
2017-01-11 13:02:24 -06:00
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Variant,
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-08 23:02:15 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum EmptyVariants {
|
2017-01-11 13:02:24 -06:00
|
|
|
|
Braced {},
|
|
|
|
|
Tuple(),
|
2017-12-23 22:24:57 -06:00
|
|
|
|
BracedSkip {
|
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
f: u8,
|
|
|
|
|
},
|
2018-04-30 03:41:22 -05:00
|
|
|
|
TupleSkip(#[serde(skip_deserializing)] u8),
|
2017-01-11 13:02:24 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-08 23:02:15 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-01-11 13:02:24 -06:00
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum EmptyVariantsDenyUnknown {
|
2017-01-11 13:02:24 -06:00
|
|
|
|
Braced {},
|
|
|
|
|
Tuple(),
|
2017-12-23 22:24:57 -06:00
|
|
|
|
BracedSkip {
|
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
f: u8,
|
|
|
|
|
},
|
2018-04-30 03:41:22 -05:00
|
|
|
|
TupleSkip(#[serde(skip_deserializing)] u8),
|
2017-01-11 13:02:24 -06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct UnitDenyUnknown;
|
2017-04-05 19:34:13 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct EmptyArray {
|
2017-04-05 19:34:13 -05:00
|
|
|
|
empty: [X; 0],
|
|
|
|
|
}
|
2017-06-29 22:12:44 -05:00
|
|
|
|
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum Or<A, B> {
|
2017-06-29 22:12:44 -05:00
|
|
|
|
A(A),
|
|
|
|
|
B(B),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(untagged, remote = "Or")]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum OrDef<A, B> {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
A(A),
|
|
|
|
|
B(B),
|
2017-06-29 22:12:44 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct Str<'a>(&'a str);
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(remote = "Str")]
|
|
|
|
|
struct StrDef<'a>(&'a str);
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct Remote<'a> {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(with = "OrDef")]
|
|
|
|
|
or: Or<u8, bool>,
|
|
|
|
|
#[serde(borrow, with = "StrDef")]
|
|
|
|
|
s: Str<'a>,
|
2017-06-29 22:12:44 -05:00
|
|
|
|
}
|
2017-07-26 01:52:06 -05:00
|
|
|
|
|
2017-11-05 13:21:39 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum BorrowVariant<'a> {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(borrow, with = "StrDef")]
|
|
|
|
|
S(Str<'a>),
|
2017-11-05 13:21:39 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-07-26 01:52:06 -05:00
|
|
|
|
mod vis {
|
2023-07-19 10:54:11 -05:00
|
|
|
|
use serde_derive::{Deserialize, Serialize};
|
2018-12-31 20:44:24 -06:00
|
|
|
|
|
2017-07-26 01:52:06 -05:00
|
|
|
|
pub struct S;
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(remote = "S")]
|
|
|
|
|
pub struct SDef;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// This would not work if SDef::serialize / deserialize are private.
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct RemoteVisibility {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(with = "vis::SDef")]
|
|
|
|
|
s: vis::S,
|
2017-07-26 01:52:06 -05:00
|
|
|
|
}
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
2017-08-14 16:39:29 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2018-03-27 03:56:05 -05:00
|
|
|
|
#[serde(remote = "Self")]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct RemoteSelf;
|
2018-03-27 03:56:05 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-08-07 19:22:26 -05:00
|
|
|
|
enum ExternallyTaggedVariantWith {
|
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Newtype(X),
|
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Tuple(String, u8),
|
|
|
|
|
|
2018-04-13 01:44:53 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Struct1 { x: X },
|
|
|
|
|
|
2017-08-07 19:22:26 -05:00
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
2017-12-23 22:24:57 -06:00
|
|
|
|
Struct { f1: String, f2: u8 },
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_unit_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_unit_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Unit,
|
|
|
|
|
}
|
|
|
|
|
assert_ser::<ExternallyTaggedVariantWith>();
|
|
|
|
|
|
2017-08-14 16:39:29 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-08-07 19:22:26 -05:00
|
|
|
|
#[serde(tag = "t")]
|
|
|
|
|
enum InternallyTaggedVariantWith {
|
2018-04-13 01:44:53 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[allow(dead_code)]
|
2018-04-13 01:44:53 -05:00
|
|
|
|
Newtype(X),
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
2018-04-13 01:44:53 -05:00
|
|
|
|
Struct1 { x: X },
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
2017-12-23 22:24:57 -06:00
|
|
|
|
Struct { f1: String, f2: u8 },
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_unit_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_unit_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Unit,
|
|
|
|
|
}
|
|
|
|
|
assert_ser::<InternallyTaggedVariantWith>();
|
|
|
|
|
|
2017-08-14 16:39:29 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-08-07 19:22:26 -05:00
|
|
|
|
#[serde(tag = "t", content = "c")]
|
|
|
|
|
enum AdjacentlyTaggedVariantWith {
|
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Newtype(X),
|
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Tuple(String, u8),
|
|
|
|
|
|
2018-04-13 01:44:53 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Struct1 { x: X },
|
|
|
|
|
|
2017-08-07 19:22:26 -05:00
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
2017-12-23 22:24:57 -06:00
|
|
|
|
Struct { f1: String, f2: u8 },
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_unit_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_unit_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Unit,
|
|
|
|
|
}
|
|
|
|
|
assert_ser::<AdjacentlyTaggedVariantWith>();
|
|
|
|
|
|
2017-08-14 16:39:29 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
2017-08-07 19:22:26 -05:00
|
|
|
|
#[serde(untagged)]
|
|
|
|
|
enum UntaggedVariantWith {
|
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Newtype(X),
|
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Tuple(String, u8),
|
|
|
|
|
|
2018-04-13 01:44:53 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Struct1 { x: X },
|
|
|
|
|
|
2017-08-07 19:22:26 -05:00
|
|
|
|
#[serde(serialize_with = "serialize_some_other_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_other_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
2017-12-23 22:24:57 -06:00
|
|
|
|
Struct { f1: String, f2: u8 },
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
#[serde(serialize_with = "serialize_some_unit_variant")]
|
|
|
|
|
#[serde(deserialize_with = "deserialize_some_unit_variant")]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Unit,
|
|
|
|
|
}
|
|
|
|
|
assert_ser::<UntaggedVariantWith>();
|
2017-09-09 13:34:08 -05:00
|
|
|
|
|
2018-05-02 00:25:06 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct FlattenWith {
|
|
|
|
|
#[serde(flatten, serialize_with = "ser_x", deserialize_with = "de_x")]
|
|
|
|
|
x: X,
|
|
|
|
|
}
|
|
|
|
|
assert::<FlattenWith>();
|
|
|
|
|
|
2019-02-28 18:35:29 -06:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(deny_unknown_fields)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct FlattenDenyUnknown<T> {
|
2019-02-28 18:35:29 -06:00
|
|
|
|
#[serde(flatten)]
|
|
|
|
|
t: T,
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-09 13:34:08 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct StaticStrStruct<'a> {
|
2017-09-09 13:34:08 -05:00
|
|
|
|
a: &'a str,
|
|
|
|
|
b: &'static str,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct StaticStrTupleStruct<'a>(&'a str, &'static str);
|
2017-09-09 13:34:08 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct StaticStrNewtypeStruct(&'static str);
|
2017-09-09 13:34:08 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum StaticStrEnum<'a> {
|
2017-12-23 22:13:08 -06:00
|
|
|
|
Struct { a: &'a str, b: &'static str },
|
2017-09-09 13:34:08 -05:00
|
|
|
|
Tuple(&'a str, &'static str),
|
|
|
|
|
Newtype(&'static str),
|
|
|
|
|
}
|
2017-11-03 12:08:02 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct SkippedStaticStr {
|
2017-12-23 22:24:57 -06:00
|
|
|
|
#[serde(skip_deserializing)]
|
|
|
|
|
skipped: &'static str,
|
2017-11-03 12:08:02 -05:00
|
|
|
|
other: isize,
|
|
|
|
|
}
|
|
|
|
|
assert::<SkippedStaticStr>();
|
2017-11-05 14:18:39 -06:00
|
|
|
|
|
|
|
|
|
macro_rules! T {
|
2018-04-30 03:41:22 -05:00
|
|
|
|
() => {
|
|
|
|
|
()
|
|
|
|
|
};
|
2017-11-05 14:18:39 -06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct TypeMacro<T> {
|
|
|
|
|
mac: T!(),
|
|
|
|
|
marker: PhantomData<T>,
|
|
|
|
|
}
|
|
|
|
|
assert::<TypeMacro<X>>();
|
2018-03-15 12:02:40 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
|
|
|
|
struct BigArray {
|
|
|
|
|
#[serde(serialize_with = "<[_]>::serialize")]
|
|
|
|
|
array: [u8; 256],
|
|
|
|
|
}
|
|
|
|
|
assert_ser::<BigArray>();
|
2018-04-10 10:16:23 -05:00
|
|
|
|
|
|
|
|
|
trait AssocSerde {
|
|
|
|
|
type Assoc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct NoSerdeImpl;
|
|
|
|
|
impl AssocSerde for NoSerdeImpl {
|
|
|
|
|
type Assoc = u32;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct AssocDerive<T: AssocSerde> {
|
2018-04-30 03:41:22 -05:00
|
|
|
|
assoc: T::Assoc,
|
2018-04-10 10:16:23 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
assert::<AssocDerive<NoSerdeImpl>>();
|
2018-04-12 15:44:32 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
struct AssocDeriveMulti<S, T: AssocSerde> {
|
|
|
|
|
s: S,
|
|
|
|
|
assoc: T::Assoc,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
assert::<AssocDeriveMulti<i32, NoSerdeImpl>>();
|
2018-05-06 23:49:37 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
|
|
|
|
#[serde(tag = "t", content = "c")]
|
|
|
|
|
enum EmptyAdjacentlyTagged {
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Struct {},
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Tuple(),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
assert_ser::<EmptyAdjacentlyTagged>();
|
2018-05-07 01:22:19 -05:00
|
|
|
|
|
|
|
|
|
mod restricted {
|
|
|
|
|
mod inner {
|
2023-07-19 10:54:11 -05:00
|
|
|
|
use serde_derive::{Deserialize, Serialize};
|
2018-12-31 20:44:24 -06:00
|
|
|
|
|
2018-05-07 01:22:19 -05:00
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
#[allow(dead_code)]
|
2018-05-07 01:22:19 -05:00
|
|
|
|
struct Restricted {
|
|
|
|
|
pub(super) a: usize,
|
|
|
|
|
pub(in super::inner) b: usize,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-05-07 23:02:42 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
|
#[serde(tag = "t", content = "c")]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum AdjacentlyTaggedVoid {}
|
2018-05-07 23:30:00 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
enum SkippedVariant<T> {
|
|
|
|
|
#[serde(skip)]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
T(T),
|
|
|
|
|
Unit,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
assert::<SkippedVariant<X>>();
|
2018-05-08 14:19:09 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct ImplicitlyBorrowedOption<'a> {
|
2018-05-08 14:19:09 -05:00
|
|
|
|
option: std::option::Option<&'a str>,
|
|
|
|
|
}
|
2018-05-19 19:14:20 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(untagged)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum UntaggedNewtypeVariantWith {
|
2018-05-19 19:14:20 -05:00
|
|
|
|
Newtype(
|
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
X,
|
|
|
|
|
),
|
|
|
|
|
}
|
2018-05-20 15:53:29 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(transparent)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct TransparentWith {
|
2018-05-20 15:53:29 -05:00
|
|
|
|
#[serde(serialize_with = "ser_x")]
|
|
|
|
|
#[serde(deserialize_with = "de_x")]
|
|
|
|
|
x: X,
|
|
|
|
|
}
|
2018-08-12 12:54:29 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
|
#[serde(untagged)]
|
2024-01-05 20:06:04 -06:00
|
|
|
|
pub enum UntaggedWithBorrow<'a> {
|
Ignore dead code lint in tests
New in nightly-2024-03-24 from https://github.com/rust-lang/rust/pull/119552.
warning: fields `nested` and `string` are never read
--> test_suite/tests/regression/issue2371.rs:10:9
|
8 | Flatten {
| ------- fields in this variant
9 | #[serde(flatten)]
10 | nested: Nested,
| ^^^^^^
11 | string: &'static str,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: fields `nested` and `string` are never read
--> test_suite/tests/regression/issue2371.rs:20:9
|
18 | Flatten {
| ------- fields in this variant
19 | #[serde(flatten)]
20 | nested: Nested,
| ^^^^^^
21 | string: &'static str,
| ^^^^^^
warning: fields `nested` and `string` are never read
--> test_suite/tests/regression/issue2371.rs:30:9
|
28 | Flatten {
| ------- fields in this variant
29 | #[serde(flatten)]
30 | nested: Nested,
| ^^^^^^
31 | string: &'static str,
| ^^^^^^
warning: fields `nested` and `string` are never read
--> test_suite/tests/regression/issue2371.rs:40:9
|
38 | Flatten {
| ------- fields in this variant
39 | #[serde(flatten)]
40 | nested: Nested,
| ^^^^^^
41 | string: &'static str,
| ^^^^^^
warning: field `0` is never read
--> test_suite/tests/test_gen.rs:690:33
|
690 | Single(#[serde(borrow)] RelObject<'a>),
| ------ ^^^^^^^^^^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
690 | Single(#[serde(borrow)] ()),
| ~~
warning: field `0` is never read
--> test_suite/tests/test_gen.rs:691:31
|
691 | Many(#[serde(borrow)] Vec<RelObject<'a>>),
| ---- ^^^^^^^^^^^^^^^^^^
| |
| field in this variant
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
691 | Many(#[serde(borrow)] ()),
| ~~
2024-03-23 22:23:13 -05:00
|
|
|
|
Single(
|
|
|
|
|
#[serde(borrow)]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
RelObject<'a>,
|
|
|
|
|
),
|
|
|
|
|
Many(
|
|
|
|
|
#[serde(borrow)]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
Vec<RelObject<'a>>,
|
|
|
|
|
),
|
2018-08-12 12:54:29 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct RelObject<'a> {
|
2018-08-12 12:54:29 -05:00
|
|
|
|
ty: &'a str,
|
|
|
|
|
id: String,
|
|
|
|
|
}
|
2019-02-15 20:32:13 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct FlattenSkipSerializing<T> {
|
2019-02-15 20:32:13 -06:00
|
|
|
|
#[serde(flatten, skip_serializing)]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
flat: T,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct FlattenSkipSerializingIf<T> {
|
2019-02-15 20:32:13 -06:00
|
|
|
|
#[serde(flatten, skip_serializing_if = "StdOption::is_none")]
|
|
|
|
|
flat: StdOption<T>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct FlattenSkipDeserializing<T> {
|
2019-02-15 20:32:13 -06:00
|
|
|
|
#[serde(flatten, skip_deserializing)]
|
|
|
|
|
flat: T,
|
|
|
|
|
}
|
2024-08-07 20:17:50 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
|
|
|
#[serde(untagged)]
|
|
|
|
|
pub enum Inner<T> {
|
|
|
|
|
Builder {
|
|
|
|
|
s: T,
|
|
|
|
|
#[serde(flatten)]
|
|
|
|
|
o: T,
|
|
|
|
|
},
|
|
|
|
|
Default {
|
|
|
|
|
s: T,
|
|
|
|
|
},
|
|
|
|
|
}
|
2020-05-08 17:38:44 -05:00
|
|
|
|
|
|
|
|
|
// https://github.com/serde-rs/serde/issues/1804
|
|
|
|
|
#[derive(Serialize, Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum Message {
|
2020-05-08 17:38:44 -05:00
|
|
|
|
#[serde(skip)]
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
|
String(String),
|
|
|
|
|
#[serde(other)]
|
|
|
|
|
Unknown,
|
|
|
|
|
}
|
2020-05-10 00:52:49 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
|
|
|
|
#[repr(packed)]
|
2024-03-11 22:10:02 -05:00
|
|
|
|
#[allow(dead_code)]
|
2020-05-10 00:52:49 -05:00
|
|
|
|
struct Packed {
|
|
|
|
|
x: u8,
|
|
|
|
|
y: u16,
|
|
|
|
|
}
|
2020-05-29 19:58:10 -05:00
|
|
|
|
|
|
|
|
|
macro_rules! deriving {
|
|
|
|
|
($field:ty) => {
|
|
|
|
|
#[derive(Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct MacroRules<'a> {
|
2020-05-29 19:58:10 -05:00
|
|
|
|
field: $field,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deriving!(&'a str);
|
2020-06-07 06:30:03 -05:00
|
|
|
|
|
|
|
|
|
macro_rules! mac {
|
|
|
|
|
($($tt:tt)*) => {
|
|
|
|
|
$($tt)*
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct BorrowLifetimeInsideMacro<'a> {
|
2020-06-07 06:30:03 -05:00
|
|
|
|
#[serde(borrow = "'a")]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub f: mac!(Cow<'a, str>),
|
2020-06-07 06:30:03 -05:00
|
|
|
|
}
|
2021-01-25 15:25:53 -06:00
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct Struct {
|
2021-01-25 15:25:53 -06:00
|
|
|
|
#[serde(serialize_with = "vec_first_element")]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub vec: Vec<Self>,
|
2021-01-25 15:25:53 -06:00
|
|
|
|
}
|
2023-07-09 20:01:33 -05:00
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
|
#[serde(bound(deserialize = "[&'de str; N]: Copy"))]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub struct GenericUnitStruct<const N: usize>;
|
2016-05-21 00:03:20 -05:00
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2016-07-22 00:51:28 -05:00
|
|
|
|
|
2017-03-27 00:56:58 -05:00
|
|
|
|
fn assert<T: Serialize + DeserializeOwned>() {}
|
2016-07-22 10:49:51 -05:00
|
|
|
|
fn assert_ser<T: Serialize>() {}
|
2016-07-22 00:51:28 -05:00
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
trait SerializeWith {
|
2017-01-14 18:07:43 -06:00
|
|
|
|
fn serialize_with<S: Serializer>(_: &Self, _: S) -> StdResult<S::Ok, S::Error>;
|
2016-07-22 00:51:28 -05:00
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
trait DeserializeWith: Sized {
|
2017-03-27 00:56:58 -05:00
|
|
|
|
fn deserialize_with<'de, D: Deserializer<'de>>(_: D) -> StdResult<Self, D::Error>;
|
2016-07-22 00:51:28 -05:00
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
// Implements neither Serialize nor Deserialize
|
2017-02-14 19:36:50 -06:00
|
|
|
|
pub struct X;
|
2016-07-22 00:51:28 -05:00
|
|
|
|
|
2017-02-14 19:36:50 -06:00
|
|
|
|
pub fn ser_x<S: Serializer>(_: &X, _: S) -> StdResult<S::Ok, S::Error> {
|
2016-07-22 10:49:51 -05:00
|
|
|
|
unimplemented!()
|
2016-06-04 18:12:01 -05:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-27 00:56:58 -05:00
|
|
|
|
pub fn de_x<'de, D: Deserializer<'de>>(_: D) -> StdResult<X, D::Error> {
|
2016-07-22 10:49:51 -05:00
|
|
|
|
unimplemented!()
|
2016-05-21 00:03:20 -05:00
|
|
|
|
}
|
|
|
|
|
|
2017-02-14 19:36:50 -06:00
|
|
|
|
mod both_x {
|
2017-12-23 22:13:08 -06:00
|
|
|
|
pub use super::{de_x as deserialize, ser_x as serialize};
|
2017-02-14 19:36:50 -06:00
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
impl SerializeWith for X {
|
2017-01-14 18:07:43 -06:00
|
|
|
|
fn serialize_with<S: Serializer>(_: &Self, _: S) -> StdResult<S::Ok, S::Error> {
|
2016-07-22 10:49:51 -05:00
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
2016-05-21 00:03:20 -05:00
|
|
|
|
}
|
|
|
|
|
|
2016-07-22 10:49:51 -05:00
|
|
|
|
impl DeserializeWith for X {
|
2017-03-27 00:56:58 -05:00
|
|
|
|
fn deserialize_with<'de, D: Deserializer<'de>>(_: D) -> StdResult<Self, D::Error> {
|
2016-07-22 10:49:51 -05:00
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
2016-05-21 00:03:20 -05:00
|
|
|
|
}
|
2017-08-07 19:22:26 -05:00
|
|
|
|
|
|
|
|
|
pub fn serialize_some_unit_variant<S>(_: S) -> StdResult<S::Ok, S::Error>
|
2017-12-23 22:13:08 -06:00
|
|
|
|
where
|
|
|
|
|
S: Serializer,
|
2017-08-07 19:22:26 -05:00
|
|
|
|
{
|
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn deserialize_some_unit_variant<'de, D>(_: D) -> StdResult<(), D::Error>
|
2017-12-23 22:13:08 -06:00
|
|
|
|
where
|
|
|
|
|
D: Deserializer<'de>,
|
2017-08-07 19:22:26 -05:00
|
|
|
|
{
|
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-16 14:04:39 -05:00
|
|
|
|
pub fn serialize_some_other_variant<S>(_: &str, _: &u8, _: S) -> StdResult<S::Ok, S::Error>
|
2017-12-23 22:13:08 -06:00
|
|
|
|
where
|
|
|
|
|
S: Serializer,
|
2017-08-07 19:22:26 -05:00
|
|
|
|
{
|
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn deserialize_some_other_variant<'de, D>(_: D) -> StdResult<(String, u8), D::Error>
|
2017-12-23 22:13:08 -06:00
|
|
|
|
where
|
|
|
|
|
D: Deserializer<'de>,
|
2017-08-07 19:22:26 -05:00
|
|
|
|
{
|
|
|
|
|
unimplemented!()
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-23 22:13:08 -06:00
|
|
|
|
pub fn is_zero(n: &u8) -> bool {
|
|
|
|
|
*n == 0
|
|
|
|
|
}
|
2021-01-25 15:25:53 -06:00
|
|
|
|
|
2023-08-21 02:44:03 -05:00
|
|
|
|
fn vec_first_element<T, S>(vec: &[T], serializer: S) -> StdResult<S::Ok, S::Error>
|
2021-01-25 15:25:53 -06:00
|
|
|
|
where
|
|
|
|
|
T: Serialize,
|
|
|
|
|
S: Serializer,
|
|
|
|
|
{
|
|
|
|
|
vec.first().serialize(serializer)
|
|
|
|
|
}
|
2021-02-28 06:43:54 -06:00
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, PartialEq, Deserialize)]
|
|
|
|
|
#[serde(tag = "tag")]
|
Work around test suite dead code warnings in nightly-2024-07-07
warning: struct `Cows` is never constructed
--> test_suite/tests/test_borrow.rs:165:12
|
165 | struct Cows<'a, 'b> {
| ^^^^
warning: struct `Wrap` is never constructed
--> test_suite/tests/test_borrow.rs:181:12
|
181 | struct Wrap<'a, 'b> {
| ^^^^
warning: struct `StructSkipDefaultGeneric` is never constructed
--> test_suite/tests/test_de.rs:96:8
|
96 | struct StructSkipDefaultGeneric<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `NonAsciiIdents` is never constructed
--> test_suite/tests/test_gen.rs:290:12
|
290 | struct NonAsciiIdents {
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[warn(dead_code)]` implied by `#[warn(warnings)]`
warning: struct `EmptyBraced` is never constructed
--> test_suite/tests/test_gen.rs:295:12
|
295 | struct EmptyBraced {}
| ^^^^^^^^^^^
warning: struct `EmptyBracedDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:299:12
|
299 | struct EmptyBracedDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `BracedSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:302:12
|
302 | struct BracedSkipAll {
| ^^^^^^^^^^^^^
warning: struct `BracedSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:309:12
|
309 | struct BracedSkipAllDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `EmptyTuple` is never constructed
--> test_suite/tests/test_gen.rs:315:12
|
315 | struct EmptyTuple();
| ^^^^^^^^^^
warning: struct `EmptyTupleDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:319:12
|
319 | struct EmptyTupleDenyUnknown();
| ^^^^^^^^^^^^^^^^^^^^^
warning: struct `TupleSkipAll` is never constructed
--> test_suite/tests/test_gen.rs:322:12
|
322 | struct TupleSkipAll(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^
warning: struct `TupleSkipAllDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:326:12
|
326 | struct TupleSkipAllDenyUnknown(#[serde(skip_deserializing)] u8);
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `EmptyEnum` is never used
--> test_suite/tests/test_gen.rs:329:10
|
329 | enum EmptyEnum {}
| ^^^^^^^^^
warning: enum `EmptyEnumDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:333:10
|
333 | enum EmptyEnumDenyUnknown {}
| ^^^^^^^^^^^^^^^^^^^^
warning: enum `EnumSkipAll` is never used
--> test_suite/tests/test_gen.rs:336:10
|
336 | enum EnumSkipAll {
| ^^^^^^^^^^^
warning: enum `EmptyVariants` is never used
--> test_suite/tests/test_gen.rs:343:10
|
343 | enum EmptyVariants {
| ^^^^^^^^^^^^^
warning: enum `EmptyVariantsDenyUnknown` is never used
--> test_suite/tests/test_gen.rs:355:10
|
355 | enum EmptyVariantsDenyUnknown {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UnitDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:367:12
|
367 | struct UnitDenyUnknown;
| ^^^^^^^^^^^^^^^
warning: struct `EmptyArray` is never constructed
--> test_suite/tests/test_gen.rs:370:12
|
370 | struct EmptyArray {
| ^^^^^^^^^^
warning: enum `Or` is never used
--> test_suite/tests/test_gen.rs:374:10
|
374 | enum Or<A, B> {
| ^^
warning: enum `OrDef` is never used
--> test_suite/tests/test_gen.rs:381:10
|
381 | enum OrDef<A, B> {
| ^^^^^
warning: struct `Str` is never constructed
--> test_suite/tests/test_gen.rs:386:12
|
386 | struct Str<'a>(&'a str);
| ^^^
warning: struct `StrDef` is never constructed
--> test_suite/tests/test_gen.rs:390:12
|
390 | struct StrDef<'a>(&'a str);
| ^^^^^^
warning: struct `Remote` is never constructed
--> test_suite/tests/test_gen.rs:393:12
|
393 | struct Remote<'a> {
| ^^^^^^
warning: enum `BorrowVariant` is never used
--> test_suite/tests/test_gen.rs:401:10
|
401 | enum BorrowVariant<'a> {
| ^^^^^^^^^^^^^
warning: struct `RemoteVisibility` is never constructed
--> test_suite/tests/test_gen.rs:418:12
|
418 | struct RemoteVisibility {
| ^^^^^^^^^^^^^^^^
warning: struct `FlattenDenyUnknown` is never constructed
--> test_suite/tests/test_gen.rs:551:12
|
551 | struct FlattenDenyUnknown<T> {
| ^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrStruct` is never constructed
--> test_suite/tests/test_gen.rs:557:12
|
557 | struct StaticStrStruct<'a> {
| ^^^^^^^^^^^^^^^
warning: struct `StaticStrTupleStruct` is never constructed
--> test_suite/tests/test_gen.rs:563:12
|
563 | struct StaticStrTupleStruct<'a>(&'a str, &'static str);
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `StaticStrNewtypeStruct` is never constructed
--> test_suite/tests/test_gen.rs:566:12
|
566 | struct StaticStrNewtypeStruct(&'static str);
| ^^^^^^^^^^^^^^^^^^^^^^
warning: enum `StaticStrEnum` is never used
--> test_suite/tests/test_gen.rs:569:10
|
569 | enum StaticStrEnum<'a> {
| ^^^^^^^^^^^^^
warning: enum `AdjacentlyTaggedVoid` is never used
--> test_suite/tests/test_gen.rs:652:10
|
652 | enum AdjacentlyTaggedVoid {}
| ^^^^^^^^^^^^^^^^^^^^
warning: struct `ImplicitlyBorrowedOption` is never constructed
--> test_suite/tests/test_gen.rs:665:12
|
665 | struct ImplicitlyBorrowedOption<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `UntaggedNewtypeVariantWith` is never used
--> test_suite/tests/test_gen.rs:672:10
|
672 | enum UntaggedNewtypeVariantWith {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TransparentWith` is never constructed
--> test_suite/tests/test_gen.rs:682:12
|
682 | struct TransparentWith {
| ^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializing` is never constructed
--> test_suite/tests/test_gen.rs:712:12
|
712 | struct FlattenSkipSerializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipSerializingIf` is never constructed
--> test_suite/tests/test_gen.rs:719:12
|
719 | struct FlattenSkipSerializingIf<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `FlattenSkipDeserializing` is never constructed
--> test_suite/tests/test_gen.rs:725:12
|
725 | struct FlattenSkipDeserializing<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: enum `Message` is never used
--> test_suite/tests/test_gen.rs:732:10
|
732 | enum Message {
| ^^^^^^^
warning: struct `MacroRules` is never constructed
--> test_suite/tests/test_gen.rs:751:20
|
751 | struct MacroRules<'a> {
| ^^^^^^^^^^
...
758 | deriving!(&'a str);
| ------------------ in this macro invocation
|
= note: this warning originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: struct `BorrowLifetimeInsideMacro` is never constructed
--> test_suite/tests/test_gen.rs:767:12
|
767 | struct BorrowLifetimeInsideMacro<'a> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `GenericUnitStruct` is never constructed
--> test_suite/tests/test_gen.rs:782:12
|
782 | struct GenericUnitStruct<const N: usize>;
| ^^^^^^^^^^^^^^^^^
warning: enum `InternallyTagged` is never used
--> test_suite/tests/test_gen.rs:869:6
|
869 | enum InternallyTagged {
| ^^^^^^^^^^^^^^^^
warning: function `deserialize_generic` is never used
--> test_suite/tests/test_gen.rs:880:4
|
880 | fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
| ^^^^^^^^^^^^^^^^^^^
warning: struct `Restricted` is never constructed
--> test_suite/tests/test_gen.rs:643:20
|
643 | struct Restricted {
| ^^^^^^^^^^
warning: struct `Test` is never constructed
--> test_suite/tests/test_remote.rs:95:8
|
95 | struct Test {
| ^^^^
warning: struct `UnitDef` is never constructed
--> test_suite/tests/test_remote.rs:135:8
|
135 | struct UnitDef;
| ^^^^^^^
warning: struct `PrimitivePubDef` is never constructed
--> test_suite/tests/test_remote.rs:143:8
|
143 | struct PrimitivePubDef(u8);
| ^^^^^^^^^^^^^^^
warning: struct `NewtypePubDef` is never constructed
--> test_suite/tests/test_remote.rs:151:8
|
151 | struct NewtypePubDef(#[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^^^
warning: struct `TuplePubDef` is never constructed
--> test_suite/tests/test_remote.rs:162:8
|
162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
| ^^^^^^^^^^^
warning: struct `StructPubDef` is never constructed
--> test_suite/tests/test_remote.rs:177:8
|
177 | struct StructPubDef {
| ^^^^^^^^^^^^
warning: struct `StructConcrete` is never constructed
--> test_suite/tests/test_remote.rs:193:8
|
193 | struct StructConcrete {
| ^^^^^^^^^^^^^^
warning: enum `EnumConcrete` is never used
--> test_suite/tests/test_remote.rs:199:6
|
199 | enum EnumConcrete {
| ^^^^^^^^^^^^
warning: enum `ErrorKind` is never used
--> test_suite/tests/test_remote.rs:204:6
|
204 | enum ErrorKind {
| ^^^^^^^^^
warning: enum `ErrorKindDef` is never used
--> test_suite/tests/test_remote.rs:214:6
|
214 | enum ErrorKindDef {
| ^^^^^^^^^^^^
warning: struct `PrimitivePub` is never constructed
--> test_suite/tests/test_remote.rs:10:16
|
10 | pub struct PrimitivePub(pub u8);
| ^^^^^^^^^^^^
warning: struct `NewtypePub` is never constructed
--> test_suite/tests/test_remote.rs:14:16
|
14 | pub struct NewtypePub(pub Unit);
| ^^^^^^^^^^
warning: struct `TuplePub` is never constructed
--> test_suite/tests/test_remote.rs:18:16
|
18 | pub struct TuplePub(pub u8, pub Unit);
| ^^^^^^^^
warning: struct `StructPub` is never constructed
--> test_suite/tests/test_remote.rs:25:16
|
25 | pub struct StructPub {
| ^^^^^^^^^
warning: enum `EnumGeneric` is never used
--> test_suite/tests/test_remote.rs:89:14
|
89 | pub enum EnumGeneric<T> {
| ^^^^^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/tests/test_self.rs:44:12
|
44 | struct Tuple(
| ^^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:52:15
|
51 | impl Tuple {
| ---------- associated items in this implementation
52 | const ASSOC: usize = 1;
| ^^^^^
53 | const fn assoc() -> usize {
| ^^^^^
warning: enum `Enum` is never used
--> test_suite/tests/test_self.rs:63:10
|
63 | enum Enum {
| ^^^^
warning: associated items `ASSOC` and `assoc` are never used
--> test_suite/tests/test_self.rs:79:15
|
78 | impl Enum {
| --------- associated items in this implementation
79 | const ASSOC: usize = 1;
| ^^^^^
80 | const fn assoc() -> usize {
| ^^^^^
warning: struct `Unit` is never constructed
--> test_suite/no_std/src/main.rs:26:8
|
26 | struct Unit;
| ^^^^
warning: struct `Newtype` is never constructed
--> test_suite/no_std/src/main.rs:29:8
|
29 | struct Newtype(u8);
| ^^^^^^^
warning: struct `Tuple` is never constructed
--> test_suite/no_std/src/main.rs:32:8
|
32 | struct Tuple(u8, u8);
| ^^^^^
warning: struct `Struct` is never constructed
--> test_suite/no_std/src/main.rs:35:8
|
35 | struct Struct {
| ^^^^^^
warning: enum `Enum` is never used
--> test_suite/no_std/src/main.rs:40:6
|
40 | enum Enum {
| ^^^^
2024-07-06 21:17:26 -05:00
|
|
|
|
pub enum InternallyTagged {
|
2021-02-28 06:43:54 -06:00
|
|
|
|
#[serde(deserialize_with = "deserialize_generic")]
|
|
|
|
|
Unit,
|
|
|
|
|
|
|
|
|
|
#[serde(deserialize_with = "deserialize_generic")]
|
|
|
|
|
Newtype(i32),
|
|
|
|
|
|
|
|
|
|
#[serde(deserialize_with = "deserialize_generic")]
|
|
|
|
|
Struct { f1: String, f2: u8 },
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn deserialize_generic<'de, T, D>(deserializer: D) -> StdResult<T, D::Error>
|
|
|
|
|
where
|
|
|
|
|
T: Deserialize<'de>,
|
|
|
|
|
D: Deserializer<'de>,
|
|
|
|
|
{
|
|
|
|
|
T::deserialize(deserializer)
|
|
|
|
|
}
|
2021-08-23 12:11:18 -05:00
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#[repr(packed)]
|
|
|
|
|
pub struct RemotePacked {
|
2021-08-23 12:49:32 -05:00
|
|
|
|
pub a: u16,
|
|
|
|
|
pub b: u32,
|
2021-08-23 12:11:18 -05:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-23 12:49:32 -05:00
|
|
|
|
#[derive(Serialize)]
|
2021-08-23 12:11:18 -05:00
|
|
|
|
#[repr(packed)]
|
|
|
|
|
#[serde(remote = "RemotePacked")]
|
|
|
|
|
pub struct RemotePackedDef {
|
2021-08-23 12:49:32 -05:00
|
|
|
|
a: u16,
|
|
|
|
|
b: u32,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Drop for RemotePackedDef {
|
|
|
|
|
fn drop(&mut self) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[repr(packed)]
|
|
|
|
|
pub struct RemotePackedNonCopy {
|
|
|
|
|
pub a: u16,
|
|
|
|
|
pub b: String,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
|
#[repr(packed)]
|
|
|
|
|
#[serde(remote = "RemotePackedNonCopy")]
|
|
|
|
|
pub struct RemotePackedNonCopyDef {
|
|
|
|
|
a: u16,
|
|
|
|
|
b: String,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Drop for RemotePackedNonCopyDef {
|
|
|
|
|
fn drop(&mut self) {}
|
2021-08-23 12:11:18 -05:00
|
|
|
|
}
|