Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: serde-rs/serde
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.194
Choose a base ref
...
head repository: serde-rs/serde
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.195
Choose a head ref
  • 9 commits
  • 9 files changed
  • 1 contributor

Commits on Jan 4, 2024

  1. Pick up changes to non_exhaustive_omitted_patterns lint

        warning: the lint level must be set on the whole match
            --> serde_derive/src/internals/attr.rs:1855:9
             |
        1854 |         #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
             |                                                ------------------------------- remove this attribute
        1855 |         _ => {}
             |         ^
             |
             = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
             |
        1796 +     #[deny(non_exhaustive_omitted_patterns)]
        1797 |     match ty {
             |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/internals/receiver.rs:151:13
            |
        150 |             #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
            |                                                    ------------------------------- remove this attribute
        151 |             _ => {}
            |             ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        109 +         #[deny(non_exhaustive_omitted_patterns)]
        110 |         match ty {
            |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/internals/receiver.rs:188:25
            |
        187 |                         #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
            |                                                                ------------------------------- remove this attribute
        188 |                         _ => {}
            |                         ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        180 +                     #[deny(non_exhaustive_omitted_patterns)]
        181 |                     match arg {
            |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/internals/receiver.rs:213:13
            |
        212 |             #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
            |                                                    ------------------------------- remove this attribute
        213 |             _ => {}
            |             ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        209 +         #[deny(non_exhaustive_omitted_patterns)]
        210 |         match bound {
            |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/internals/receiver.rs:239:21
            |
        238 |                     #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
            |                                                            ------------------------------- remove this attribute
        239 |                     _ => {}
            |                     ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        230 +                 #[deny(non_exhaustive_omitted_patterns)]
        231 |                 match predicate {
            |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/bound.rs:185:17
            |
        184 |                 #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
            |                                                        ------------------------------- remove this attribute
        185 |                 _ => {}
            |                 ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        146 +             #[deny(non_exhaustive_omitted_patterns)]
        147 |             match ty {
            |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/bound.rs:209:29
            |
        207 | ...                       deny(non_exhaustive_omitted_patterns)
            |                                ------------------------------- remove this attribute
        208 | ...                   )]
        209 | ...                   _ => {}
            |                       ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        198 +                         #[deny(non_exhaustive_omitted_patterns)]
        199 |                         match arg {
            |
    
        warning: the lint level must be set on the whole match
           --> serde_derive/src/bound.rs:234:17
            |
        233 |                 #[cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
            |                                                        ------------------------------- remove this attribute
        234 |                 _ => {}
            |                 ^
            |
            = help: it no longer has any effect to set the lint level on an individual match arm
        help: set the lint level on the whole match
            |
        230 +             #[deny(non_exhaustive_omitted_patterns)]
        231 |             match bound {
            |
    dtolnay committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    7c65a9d View commit details
    Browse the repository at this point in the history
  2. Fill in omitted patterns for GenericArguments match

        error: some variants are not matched explicitly
            --> serde_derive/src/internals/attr.rs:1823:31
             |
        1823 |                         match arg {
             |                               ^^^ patterns `&GenericArgument::Const(_)`, `&GenericArgument::AssocConst(_)` and `&GenericArgument::Constraint(_)` not covered
             |
             = help: ensure that all variants are matched explicitly by adding the suggested match arms
             = note: the matched value is of type `&GenericArgument` and the `non_exhaustive_omitted_patterns` attribute was found
        note: the lint level is defined here
            --> serde_derive/src/internals/attr.rs:1797:49
             |
        1797 |         #![cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
             |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    dtolnay committed Jan 4, 2024
    Configuration menu
    Copy the full SHA
    8bc71de View commit details
    Browse the repository at this point in the history
  3. Merge pull request #2670 from serde-rs/exhaustive

    Pick up changes to non_exhaustive_omitted_patterns lint
    dtolnay authored Jan 4, 2024
    Configuration menu
    Copy the full SHA
    961fa59 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. Work around dead_code warning in tests

        error: field `0` is never read
           --> test_suite/tests/test_gen.rs:690:33
            |
        690 |         Single(#[serde(borrow)] 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
            |
        690 |         Single(#[serde(borrow)] ()),
            |                                 ~~
    
        error: 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)] ()),
            |                               ~~
    dtolnay committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    d883c94 View commit details
    Browse the repository at this point in the history
  2. Add FIXME to fix dead_code warning when using serde(remote)

        warning: field `0` is never read
           --> test_suite/tests/test_remote.rs:143:24
            |
        143 | struct PrimitivePubDef(u8);
            |        --------------- ^^
            |        |
            |        field in this struct
            |
            = 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
            |
        143 | struct PrimitivePubDef(());
            |                        ~~
    
        warning: field `0` is never read
           --> test_suite/tests/test_remote.rs:162:20
            |
        162 | struct TuplePubDef(u8, #[serde(with = "UnitDef")] remote::Unit);
            |        ----------- ^^
            |        |
            |        field in this struct
            |
        help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
            |
        162 | struct TuplePubDef((), #[serde(with = "UnitDef")] remote::Unit);
            |                    ~~
    
        warning: field `0` is never read
           --> test_suite/tests/test_remote.rs:200:13
            |
        200 |     Variant(u8),
            |     ------- ^^
            |     |
            |     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
            |
        200 |     Variant(()),
            |             ~~
    
        error: field `0` is never read
           --> test_suite/tests/test_gen.rs:390:23
            |
        390 |     struct StrDef<'a>(&'a str);
            |            ------     ^^^^^^^
            |            |
            |            field in this struct
            |
        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)]`
        help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
            |
        390 |     struct StrDef<'a>(());
            |                       ~~
    dtolnay committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    6f1a8c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6502b31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    38d9e0b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #2671 from dtolnay/deadremote

    Fix new dead_code warning in tuple struct and tuple variant remote defs
    dtolnay authored Jan 6, 2024
    Configuration menu
    Copy the full SHA
    196f311 View commit details
    Browse the repository at this point in the history
  6. Release 1.0.195

    dtolnay committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    03eec42 View commit details
    Browse the repository at this point in the history
Loading