serde/test_suite/tests
David Tolnay 100ddada2f
Suppress dead_code on fields only accessed by deserialize_in_place
error: field `option` is never read
       --> test_suite/tests/test_gen.rs:666:9
        |
    665 |     struct ImplicitlyBorrowedOption<'a> {
        |            ------------------------ field in this struct
    666 |         option: std::option::Option<&'a str>,
        |         ^^^^^^
        |
    note: the lint level is defined here
       --> test_suite/tests/test_gen.rs:5:9
        |
    5   | #![deny(warnings)]
        |         ^^^^^^^^
        = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`

    error: fields `ty` and `id` are never read
       --> test_suite/tests/test_gen.rs:696:9
        |
    695 |     struct RelObject<'a> {
        |            --------- fields in this struct
    696 |         ty: &'a str,
        |         ^^
    697 |         id: String,
        |         ^^

    error: field `field` is never read
       --> test_suite/tests/test_gen.rs:740:17
        |
    739 |             struct MacroRules<'a> {
        |                    ---------- field in this struct
    740 |                 field: $field,
        |                 ^^^^^
    ...
    745 |     deriving!(&'a str);
        |     ------------------ in this macro invocation
        |
        = note: this error originates in the macro `deriving` (in Nightly builds, run with -Z macro-backtrace for more info)

    error: field `f` is never read
       --> test_suite/tests/test_gen.rs:756:9
        |
    754 |     struct BorrowLifetimeInsideMacro<'a> {
        |            ------------------------- field in this struct
    755 |         #[serde(borrow = "'a")]
    756 |         f: mac!(Cow<'a, str>),
        |         ^

    warning: fields `question` and `answer` are never read
        --> test_suite/tests/test_annotations.rs:2969:9
         |
    2968 |     struct Struct {
         |            ------ fields in this struct
    2969 |         question: String,
         |         ^^^^^^^^
    2970 |         answer: u32,
         |         ^^^^^^
         |
         = note: `#[warn(dead_code)]` on by default
2023-07-19 09:12:35 -07:00
..
bytes Replace try! macro in test suite 2018-12-31 21:46:14 -05:00
macros Ignore unused_macro_rules warning in test macros 2022-05-12 21:33:43 -07:00
regression Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
ui Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
unstable Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
compiletest.rs Ignore unused ignore attribute warning in some configurations 2022-04-24 16:01:22 -07:00
regression.rs Make a directory dedicated to regression tests 2023-03-08 19:02:42 -08:00
test_annotations.rs Suppress dead_code on fields only accessed by deserialize_in_place 2023-07-19 09:12:35 -07:00
test_borrow.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_de_error.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_de.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_gen.rs Suppress dead_code on fields only accessed by deserialize_in_place 2023-07-19 09:12:35 -07:00
test_identifier.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_ignored_any.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_macros.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_remote.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_roundtrip.rs Implement test suite seq macro without tt muncher 2022-01-20 19:40:58 -08:00
test_self.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_ser.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_serde_path.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00
test_unstable.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 20:43:51 -07:00
test_value.rs Import macros exclusively through serde_derive in test suite 2023-07-19 09:08:05 -07:00