Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow floats to be deserialized from ints in tagged unions, part 2 #1

Closed
wants to merge 2,574 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 18, 2019

  1. Copy the full SHA
    cd365de View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2019

  1. Copy the full SHA
    895eb2b View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2020

  1. Copy the full SHA
    dfa321a View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2020

  1. remove the tiny bit of unsafe code

    James McGlashan committed Jan 17, 2020
    Copy the full SHA
    2a35101 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1721 from WildCryptoFox/remove-unsafe-code

    remove the tiny bit of unsafe code
    dtolnay committed Jan 17, 2020
    Copy the full SHA
    fc43def View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. Copy the full SHA
    137ab48 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    dbf1f9a View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2020

  1. Copy the full SHA
    cb1632e View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2020

  1. Copy the full SHA
    a61cd0f View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2020

  1. Copy the full SHA
    142955b View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2020

  1. Copy the full SHA
    27c283a View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2020

  1. Copy the full SHA
    1894cb7 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Copy the full SHA
    078e88b View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2020

  1. Allow non-std Cow borrows

    maciejhirsz committed Mar 18, 2020
    Copy the full SHA
    ec6ca6b View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1754 from maciejhirsz/non-std-cow-borrow

    Allow #[serde(borrow)] for non-std Cow
    dtolnay committed Mar 18, 2020
    Copy the full SHA
    c33fb95 View commit details
    Browse the repository at this point in the history
  3. Release 1.0.105

    dtolnay committed Mar 18, 2020
    Copy the full SHA
    69653a7 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2020

  1. Copy the full SHA
    e2ada0e View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1764 from serde-rs/collect

    Simplify default Serializer::collect_str implementation
    dtolnay committed Mar 28, 2020
    Copy the full SHA
    2a9971a View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. Copy the full SHA
    a135199 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1768 from robo9k/dummy-const-hidden-doc

    Hide generated dummy const in rustdoc
    dtolnay committed Apr 3, 2020
    Copy the full SHA
    645f672 View commit details
    Browse the repository at this point in the history
  3. Release 1.0.106

    dtolnay committed Apr 3, 2020
    Copy the full SHA
    d156452 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2020

  1. Copy the full SHA
    1b35c9e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b6def53 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2020

  1. Copy the full SHA
    0bab6be View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    03addba View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Copy the full SHA
    0c4ffad View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    29be721 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2020

  1. Remove CI badge from Cargo.toml

    Support for badges has been deprecated by crates.io.
    dtolnay committed May 2, 2020
    Copy the full SHA
    6052293 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2020

  1. Enable GitHub Actions

    dtolnay committed May 3, 2020
    Copy the full SHA
    5534bf4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1795 from serde-rs/actions

    Enable GitHub Actions
    dtolnay committed May 3, 2020
    Copy the full SHA
    2b43557 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2020

  1. Try caching Cargo index to speed up 1.13 build

    This one build always took several (10+) minutes on:
    
        Updating registry `https://github.com/rust-lang/crates.io-index`
    dtolnay committed May 4, 2020
    Copy the full SHA
    cd836eb View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. Remove Travis configuration

    dtolnay committed May 5, 2020
    Copy the full SHA
    112f204 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8b52ddd View commit details
    Browse the repository at this point in the history
  3. Split test suite to its own Actions job

    Since this step takes the longest.
    dtolnay committed May 5, 2020
    Copy the full SHA
    e16e924 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    f369707 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2020

  1. Remove clippy from main CI workflow

    We don't run clippy on PRs. It is covered by a separate clippy.yml
    workflow.
    dtolnay committed May 6, 2020
    Copy the full SHA
    02631ce View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    38ad09a View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    59104bb View commit details
    Browse the repository at this point in the history
  4. Update to rustversion 1.0

    dtolnay committed May 6, 2020
    Copy the full SHA
    65dfa60 View commit details
    Browse the repository at this point in the history
  5. Update to macrotest 1.0

    dtolnay committed May 6, 2020
    Copy the full SHA
    732544a View commit details
    Browse the repository at this point in the history
  6. Regenerate macrotest *.expanded.rs files

    This picks up changes from a135199 and 1b35c9e.
    dtolnay committed May 6, 2020
    Copy the full SHA
    19a1123 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    e2ff603 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    23db3a4 View commit details
    Browse the repository at this point in the history
  9. Exclude expansion tests from test suite by default

    This test isn't high enough signal to have all contributors run it.
    dtolnay committed May 6, 2020
    Copy the full SHA
    115c1b4 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    c120c45 View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    099fa25 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2020

  1. Copy the full SHA
    f44402e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    63809e6 View commit details
    Browse the repository at this point in the history
  3. Merge pull request serde-rs#1805 from dtolnay/skip

    Fix indexing bug when `skip` and `other` are combined
    dtolnay committed May 8, 2020
    Copy the full SHA
    36a6687 View commit details
    Browse the repository at this point in the history
  4. Release 1.0.107

    dtolnay committed May 8, 2020
    Copy the full SHA
    f63acb5 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2020

  1. impl Serializer for &mut fmt::Formatter

    Jethro Beekman authored and dtolnay committed May 10, 2020
    Copy the full SHA
    726ff5e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    99bc52f View commit details
    Browse the repository at this point in the history
  3. Move the Formatter Serializer to a module

    Let's keep impls.rs for Serialize impls, which there are enough of
    already.
    dtolnay committed May 10, 2020
    Copy the full SHA
    6182ece View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    16bf987 View commit details
    Browse the repository at this point in the history
  5. Directly display to the Formatter

    This allows formatter flags to take effect.
    dtolnay committed May 10, 2020
    Copy the full SHA
    850a29b View commit details
    Browse the repository at this point in the history
  6. Allow serializing newtype struct to Formatter

    Serialize_newtype_struct is typically expected to just pass through the
    wrapped value.
    dtolnay committed May 10, 2020
    Copy the full SHA
    35ad468 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    1b8ebf6 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    b7cfe33 View commit details
    Browse the repository at this point in the history
  9. Release 1.0.108

    dtolnay committed May 10, 2020
    Copy the full SHA
    ea2789d View commit details
    Browse the repository at this point in the history
  10. Turn panic to error in SystemTime serialization

    ppc authored and dtolnay committed May 10, 2020
    Copy the full SHA
    a81968a View commit details
    Browse the repository at this point in the history
  11. Format PR 1702 with rustfmt

    dtolnay committed May 10, 2020
    Copy the full SHA
    3c97e1b View commit details
    Browse the repository at this point in the history
  12. Allow optional content field for adjacently tagged newtype variants

    * Deserialize adjacently tagged newtype variants with optional content as None instead of erroring when content field is missing
    
    * refactor to remove duplicate code and remove panic
    yhtez committed May 10, 2020
    Copy the full SHA
    172edc4 View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    9476838 View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    9433004 View commit details
    Browse the repository at this point in the history
  15. Release 1.0.109

    dtolnay committed May 10, 2020
    Copy the full SHA
    b97a183 View commit details
    Browse the repository at this point in the history
  16. Fix borrow error on pre-NLL compilers

        error[E0506]: cannot assign to `missing_content` because it is borrowed
            --> serde_derive/src/de.rs:1414:9
             |
        1388 |           .filter_map(|(i, variant)| {
             |                       -------------- borrow of `missing_content` occurs here
        ...
        1414 | /         missing_content = quote! {
        1415 | |             match __field {
        1416 | |                 #(#missing_content_arms)*
        1417 | |                 #missing_content_fallthrough
        1418 | |             }
        1419 | |         };
             | |_________^ assignment to borrowed `missing_content` occurs here
    
        error[E0502]: cannot borrow `missing_content_fallthrough` as immutable because it is also borrowed as mutable
            --> serde_derive/src/de.rs:1414:27
             |
        1388 |           .filter_map(|(i, variant)| {
             |                       -------------- mutable borrow occurs here
        ...
        1404 |                       missing_content_fallthrough = quote!(_ => #missing_content);
             |                       --------------------------- previous borrow occurs due to use of `missing_content_fallthrough` in closure
        ...
        1414 |           missing_content = quote! {
             |  ___________________________^
        1415 | |             match __field {
        1416 | |                 #(#missing_content_arms)*
        1417 | |                 #missing_content_fallthrough
        1418 | |             }
        1419 | |         };
             | |_________^ immutable borrow occurs here
        ...
        1622 |   }
             |   - mutable borrow ends here
             |
             = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
    dtolnay committed May 10, 2020
    Copy the full SHA
    dda070f View commit details
    Browse the repository at this point in the history
  17. Add a CI builder on 1.31.0

    dtolnay committed May 10, 2020
    Copy the full SHA
    4d6d0ae View commit details
    Browse the repository at this point in the history
  18. Merge pull request serde-rs#1807 from dtolnay/31

    Add a CI builder on 1.31.0
    dtolnay committed May 10, 2020
    Copy the full SHA
    d6b39fd View commit details
    Browse the repository at this point in the history
  19. Add support for packed structs.

    05storm26 authored and dtolnay committed May 10, 2020
    Copy the full SHA
    9f47c47 View commit details
    Browse the repository at this point in the history
  20. Copy the full SHA
    c211449 View commit details
    Browse the repository at this point in the history
  21. Copy the full SHA
    1fe3904 View commit details
    Browse the repository at this point in the history
  22. Format PR 1791 with rustfmt

    dtolnay committed May 10, 2020
    Copy the full SHA
    548eb8f View commit details
    Browse the repository at this point in the history
  23. Copy the full SHA
    da8d6f6 View commit details
    Browse the repository at this point in the history
  24. Release 1.0.110

    dtolnay committed May 10, 2020
    Copy the full SHA
    078b171 View commit details
    Browse the repository at this point in the history
  25. Update 'Getting help' section

    dtolnay committed May 10, 2020
    Copy the full SHA
    3167f98 View commit details
    Browse the repository at this point in the history
  26. Merge pull request serde-rs#1808 from dtolnay/help

    Update 'Getting help' section
    dtolnay committed May 10, 2020
    Copy the full SHA
    afd51ef View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. Copy the full SHA
    c20730e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    9d12515 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2020

  1. Copy the full SHA
    ef6ed1d View commit details
    Browse the repository at this point in the history

Commits on May 30, 2020

  1. Copy the full SHA
    31fe82a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    f7d06ca View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    c45a809 View commit details
    Browse the repository at this point in the history
  4. Merge pull request serde-rs#1821 from dtolnay/ungroup

    Look inside of None-delimited groups when examining types
    dtolnay committed May 30, 2020
    Copy the full SHA
    ef16c81 View commit details
    Browse the repository at this point in the history
  5. Release 1.0.111

    dtolnay committed May 30, 2020
    Copy the full SHA
    9f331cc View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2020

  1. No need to specify Cargo.toml in package.include

    Cargo.toml is always included in the published crate.
    dtolnay committed Jun 10, 2020
    Copy the full SHA
    0856a2c View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2020

  1. Copy the full SHA
    95b1a5d View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2020

  1. Copy the full SHA
    97962d5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1839 from dtolnay/entry

    Forward serialize_entry on flattened maps
    dtolnay committed Jun 14, 2020
    Copy the full SHA
    e8fd2c8 View commit details
    Browse the repository at this point in the history
  3. Release 1.0.112

    dtolnay committed Jun 14, 2020
    Copy the full SHA
    f3520e5 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2020

  1. Add FlexBuffers to serde ecosystem list

    Add FlexBuffers to serde ecosystem list
    rw committed Jun 16, 2020
    Copy the full SHA
    bb1dedf View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2020

  1. Merge pull request serde-rs#1840 from rw/patch-1

    Add FlexBuffers to serde ecosystem list
    dtolnay committed Jun 19, 2020
    Copy the full SHA
    6980727 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    a50e1c2 View commit details
    Browse the repository at this point in the history
  3. Merge pull request serde-rs#1827 from taiki-e/underscore_consts

    Use underscore consts on Rust 1.37+
    dtolnay committed Jun 19, 2020
    Copy the full SHA
    b3ff7e4 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    7351e0e View commit details
    Browse the repository at this point in the history
  5. Release 1.0.113

    dtolnay committed Jun 19, 2020
    Copy the full SHA
    7350b58 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2020

  1. Copy the full SHA
    6b3777b View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1841 from dtolnay/lenhint

    Remove len hint specialization
    dtolnay committed Jun 21, 2020
    Copy the full SHA
    8ff11dc View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    d5e6436 View commit details
    Browse the repository at this point in the history
  4. Improved packed repr matching.

    TannerRogalsky authored and dtolnay committed Jun 21, 2020
    Copy the full SHA
    1cd10a7 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    7e5701a View commit details
    Browse the repository at this point in the history
  6. Remove error_on_line_overflow rustfmt setting

    No longer seeing warnings on this from rustfmt.
    dtolnay committed Jun 21, 2020
    Copy the full SHA
    04faac9 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2020

  1. Copy the full SHA
    a9f8ea0 View commit details
    Browse the repository at this point in the history
  2. Release 1.0.114

    dtolnay committed Jun 22, 2020
    Copy the full SHA
    9c6f0c3 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    010444d View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2020

  1. Suppress mixed_script_confusables in test suite

        error: The usage of Script Group `Greek` in this crate consists solely of mixed script confusables
           --> test_suite/tests/test_gen.rs:269:9
            |
        269 |         σ: f64,
            |         ^
            |
        note: the lint level is defined here
           --> test_suite/tests/test_gen.rs:5:9
            |
        5   | #![deny(warnings)]
            |         ^^^^^^^^
            = note: `#[deny(mixed_script_confusables)]` implied by `#[deny(warnings)]`
            = note: The usage includes 'σ' (U+03C3).
            = note: Please recheck to make sure their usages are indeed what you want.
    dtolnay committed Jun 27, 2020
    Copy the full SHA
    764ebd9 View commit details
    Browse the repository at this point in the history
  2. Suppress unknown_lints warning in test suite

    When building with beta and older rustc:
    
        error: unknown lint: `mixed_script_confusables`
         --> test_suite/tests/test_gen.rs:7:10
          |
        7 | #![allow(mixed_script_confusables, clippy::trivially_copy_pass_by_ref)]
          |          ^^^^^^^^^^^^^^^^^^^^^^^^
          |
        note: the lint level is defined here
         --> test_suite/tests/test_gen.rs:5:9
          |
        5 | #![deny(warnings)]
          |         ^^^^^^^^
          = note: `#[deny(unknown_lints)]` implied by `#[deny(warnings)]`
    dtolnay committed Jun 27, 2020
    Copy the full SHA
    c619b2a View commit details
    Browse the repository at this point in the history
  3. Suppress unused_attributes warning in test suite

    This test has multiple #[ignore] attributes in some configurations.
    
        $ cargo +beta check --test expandtest
        warning: unused attribute
         --> test_suite/tests/expandtest.rs:2:29
          |
        2 | #[cfg_attr(not(expandtest), ignore)]
          |                             ^^^^^^
          |
          = note: `#[warn(unused_attributes)]` on by default
    dtolnay committed Jun 27, 2020
    Copy the full SHA
    29c5a50 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. Drop 'help or discussion' issue template

    Per https://github.com/serde-rs/serde#getting-help we're steering these
    to Discord / Stack Overflow / Reddit / etc.
    
    Can reconsider when GitHub Discussions is out of beta
    (https://github.com/vercel/next.js/discussions).
    dtolnay committed Jul 5, 2020
    Copy the full SHA
    24e6acb View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2020

  1. Tweak yaml format blurb

    dtolnay committed Jul 6, 2020
    Copy the full SHA
    9e140a2 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2020

  1. Copy the full SHA
    3022064 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    f8787c3 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2020

  1. Copy the full SHA
    53b9871 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2020

  1. Add test for flattened unit

    dtolnay committed Aug 10, 2020
    Copy the full SHA
    26186bd View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ba07075 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    bf76f50 View commit details
    Browse the repository at this point in the history
  4. Merge pull request serde-rs#1874 from dtolnay/flatunit

    Support flattening a Unit
    dtolnay committed Aug 10, 2020
    Copy the full SHA
    e6f086d View commit details
    Browse the repository at this point in the history
  5. Release 1.0.115

    dtolnay committed Aug 10, 2020
    Copy the full SHA
    2ef60b6 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2020

  1. Copy the full SHA
    2b5b159 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1882 from dtolnay/bincode

    Rename TyOverby/bincode to servo/bincode
    dtolnay committed Aug 28, 2020
    Copy the full SHA
    7ea7c2c View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2020

  1. Copy the full SHA
    e5b3507 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1885 from dtolnay/qs

    Replace serde_urlencoded link with serde_qs
    dtolnay committed Sep 5, 2020
    Copy the full SHA
    d35de19 View commit details
    Browse the repository at this point in the history
  3. Update code of conduct link

    dtolnay committed Sep 5, 2020
    Copy the full SHA
    2e76f70 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. Fix hand-written enum variant deserializations to allow u64 discriminant

    Automatically generated enum variant deserializers allowed any integer
    type as the discriminant, but the hand-written ones for specific enum
    types such as Result or IpAddr only allowed types up to u32. This broke
    some non-human-readable deserializers for these enums, with
    deserializers that emit any integer type as a u64. Switch the visit_u32
    methods to visit_u64 methods to allow discriminants to have any size up
    to a u64.
    joshtriplett committed Sep 11, 2020
    Copy the full SHA
    45c45e8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1888 from joshtriplett/fix-enum-deseriali…

    …zation-u64
    
    Fix hand-written enum variant deserializations to allow u64 discriminant
    dtolnay committed Sep 11, 2020
    Copy the full SHA
    a5490e2 View commit details
    Browse the repository at this point in the history
  3. Release 1.0.116

    dtolnay committed Sep 11, 2020
    Copy the full SHA
    b539cb4 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2020

  1. Copy the full SHA
    be7d0e7 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2020

  1. Copy the full SHA
    2e821ea View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2020

  1. Copy the full SHA
    db3074a View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2020

  1. Copy the full SHA
    2b50409 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2020

  1. Copy the full SHA
    e6d2322 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1906 from Mingun/fix-misprint

    Fix misprint in the error message
    dtolnay committed Oct 11, 2020
    Copy the full SHA
    4bec9ff View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2020

  1. Release 1.0.117

    dtolnay committed Oct 15, 2020
    Copy the full SHA
    fc3f104 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2020

  1. Copy the full SHA
    8084258 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2020

  1. Copy the full SHA
    f6eb34a View commit details
    Browse the repository at this point in the history
  2. Implement IdentifierDeserializer for u64 instead of u32 because all i…

    …dentifiers deserialized with visit_u64
    Mingun committed Oct 22, 2020
    Copy the full SHA
    34de1e0 View commit details
    Browse the repository at this point in the history
  3. Allow field identifiers be any numbers if #[serde(other)] is used

    Thus behavior synchronized between string/bytes identifiers and numeric identifiers
    Mingun committed Oct 22, 2020
    Copy the full SHA
    0737474 View commit details
    Browse the repository at this point in the history
  4. Allow borrowed and owned strings and bytes and u8, u16, u64 for varia…

    …nt keys in serde_test
    Mingun committed Oct 22, 2020
    Copy the full SHA
    e805717 View commit details
    Browse the repository at this point in the history
  5. Allow to run assert_de_tokens_error on token sequence that is not exp…

    …ected by enum deserializer
    
    Before that fix following code panics, because `Token::Unit` was unexpected by test deserializer:
    ```
    #[derive(Deserialize)]
    enum E { ... }
    
    assert_de_tokens_error::<E>(&[Token::Unit], "...");
    ```
    Mingun committed Oct 22, 2020
    Copy the full SHA
    23c14e5 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    104ad9a View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2020

  1. Make BytesDeserializer public

    Mingun committed Oct 23, 2020
    Copy the full SHA
    42fa794 View commit details
    Browse the repository at this point in the history
  2. Introduce a forward_deserializer macro.

    It helps to create deserializers that can stop time: save the value and then use visitor to get it later!
    Mingun committed Oct 23, 2020
    Copy the full SHA
    094f63b View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    9e1f573 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    7a7a182 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    a227a87 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2020

  1. Fix incorrect messages in serialized tokens assertions

    Serializer contains expected tokens, called methods provide actual tokens
    Mingun committed Oct 27, 2020
    Copy the full SHA
    920a77a View commit details
    Browse the repository at this point in the history
  2. Forward Readable|Compact next_entry_seed to underlying next_entry_see…

    …d instead of usage of default implementation
    
    Difference is noticeable for deserializers that rely on call of next_entry_seed
    (for example, current quick-xml supports only next_entry_seed)
    Mingun committed Oct 27, 2020
    Copy the full SHA
    97c350a View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2020

  1. Resolve ptr_eq clippy lint

        error: use `std::ptr::eq` when comparing raw pointers
           --> serde_derive/src/de.rs:362:12
            |
        362 |         if field as *const Field == transparent_field as *const Field {
            |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(field, transparent_field)`
            |
        note: the lint level is defined here
           --> serde_derive/src/lib.rs:18:9
            |
        18  | #![deny(clippy::all, clippy::pedantic)]
            |         ^^^^^^^^^^^
            = note: `#[deny(clippy::ptr_eq)]` implied by `#[deny(clippy::all)]`
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
    dtolnay committed Oct 28, 2020
    Copy the full SHA
    0d5b6c1 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    0e1c409 View commit details
    Browse the repository at this point in the history
  3. Show correct location in error messages by tracking caller of utility…

    … `assert_tokens` functions
    Mingun committed Oct 28, 2020
    Copy the full SHA
    5cbc843 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2020

  1. Copy the full SHA
    e3d871f View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. Copy the full SHA
    ede40bd View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2020

  1. Copy the full SHA
    192c781 View commit details
    Browse the repository at this point in the history
  2. Resolve clippy items_after_statements lint

        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:1876:9
             |
        1876 | /         impl<'de> Deserialize<'de> for Field {
        1877 | |             fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
        1878 | |             where
        1879 | |                 D: Deserializer<'de>,
        ...    |
        1917 | |             }
        1918 | |         }
             | |_________^
             |
        note: the lint level is defined here
            --> serde/src/lib.rs:95:52
             |
        95   | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
             |                                                    ^^^^^^^^^^^^^^^
             = note: `#[deny(clippy::items_after_statements)]` implied by `#[deny(clippy::pedantic)]`
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:1920:9
             |
        1920 |         struct DurationVisitor;
             |         ^^^^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:1922:9
             |
        1922 | /         impl<'de> Visitor<'de> for DurationVisitor {
        1923 | |             type Value = Duration;
        1924 | |
        1925 | |             fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
        ...    |
        1979 | |             }
        1980 | |         }
             | |_________^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:1982:9
             |
        1982 |         const FIELDS: &'static [&'static str] = &["secs", "nanos"];
             |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:2001:9
             |
        2001 | /         impl<'de> Deserialize<'de> for Field {
        2002 | |             fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
        2003 | |             where
        2004 | |                 D: Deserializer<'de>,
        ...    |
        2042 | |             }
        2043 | |         }
             | |_________^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:2045:9
             |
        2045 |         struct DurationVisitor;
             |         ^^^^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:2047:9
             |
        2047 | /         impl<'de> Visitor<'de> for DurationVisitor {
        2048 | |             type Value = Duration;
        2049 | |
        2050 | |             fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
        ...    |
        2108 | |             }
        2109 | |         }
             | |_________^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    
        error: adding items after statements is confusing, since items exist from the start of the scope
            --> serde/src/de/impls.rs:2111:9
             |
        2111 |         const FIELDS: &'static [&'static str] = &["secs_since_epoch", "nanos_since_epoch"];
             |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
    dtolnay committed Nov 29, 2020
    Copy the full SHA
    8472192 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2020

  1. Merge pull request serde-rs#1926 from attente/core-num-wrapping

    Allow serializing of Wrapping without std
    dtolnay committed Dec 5, 2020
    Copy the full SHA
    4a335f8 View commit details
    Browse the repository at this point in the history
  2. Release 1.0.118

    dtolnay committed Dec 5, 2020
    Copy the full SHA
    e797431 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2020

  1. Copy the full SHA
    a5da27e View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1936 from bryanburgers/add-serde-dynamo

    Add serde_dynamo to the list of data formats
    dtolnay committed Dec 21, 2020
    Copy the full SHA
    3c29a88 View commit details
    Browse the repository at this point in the history
  3. Switch to short form for serde.rs link in rustdoc

    Fixes a rustdoc warning:
    
        warning: unneeded long form for URL
          --> serde/src/lib.rs:12:27
           |
        12 | //! See the Serde website [https://serde.rs/] for additional documentation and
           |                           ^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://serde.rs/>`
           |
           = note: `#[warn(non_autolinks)]` on by default
    dtolnay committed Dec 21, 2020
    Copy the full SHA
    3c9fa1c View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2021

  1. Copy the full SHA
    8847800 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2021

  1. Copy the full SHA
    91bfa8f View commit details
    Browse the repository at this point in the history
  2. Make it clearer that the private implementation details are private

    Both of these modules are doc(hidden) and commented "Not public API",
    but incorrect downstream code sometimes still references them. Naming
    the module __private will make it more likely to be noticed in code
    review.
    dtolnay committed Jan 9, 2021
    Copy the full SHA
    dd1f4b4 View commit details
    Browse the repository at this point in the history
  3. Restore compatibility with rustc 1.13.0

        error[E0432]: unresolved import `private::de::size_hint`
          --> src/de/value.rs:28:5
           |
        28 | use private::de::size_hint;
           |     ^^^^^^^^^^^^^^^^^^^^^^ Maybe a missing `extern crate private`?
    dtolnay committed Jan 9, 2021
    Copy the full SHA
    b0c99ed View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Release 1.0.119

    dtolnay committed Jan 11, 2021
    Copy the full SHA
    4c89cf8 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. refactor: Merge multiple FromStr visitors to a single FromStrVisitor

    Only refactors, doesn't actually expose this visitor
    Markus Westerlind committed Jan 12, 2021
    Copy the full SHA
    99d9151 View commit details
    Browse the repository at this point in the history
  2. Touch up PR 1948

    dtolnay committed Jan 12, 2021
    Copy the full SHA
    391d3ab View commit details
    Browse the repository at this point in the history
  3. Merge pull request serde-rs#1948 from Marwes/from_str

    refactor: Merge multiple FromStr visitors to a single FromStrVisitor
    dtolnay committed Jan 12, 2021
    Copy the full SHA
    78a9dbc View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2021

  1. Add 128-bit integer support to de::IgnoredAny

    This fixes the errors that occur when IgnoredAny is deserialized
    from anything containing a 128-bit integer somewhere. As IgnoredAny
    is used in serde_derive to skip ignored fields in structs, these
    errors currently prevent parsing of structs with an ignored field
    containing a 128-bit integer in the serialization.
    TheJokr committed Jan 19, 2021
    Copy the full SHA
    c162d51 View commit details
    Browse the repository at this point in the history
  2. Merge pull request serde-rs#1955 from TheJokr/patch-1

    Add 128-bit integer support to de::IgnoredAny
    dtolnay committed Jan 19, 2021
    Copy the full SHA
    cd6697b View commit details
    Browse the repository at this point in the history
  3. Release 1.0.120

    dtolnay committed Jan 19, 2021
    Copy the full SHA
    398fba9 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2021

  1. Prevent panic when deserializing malformed Duration

    std::time::Duration::new can panic. There is no alternative non-panicing constructor.
    Check the panic condition beforehand and return an error instead of panicing.
    
    Fixes serde-rs#1933
    jonasbb committed Jan 20, 2021
    Copy the full SHA
    b276849 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2021

  1. Merge pull request serde-rs#1958 from jonasbb/duration-panic

    Prevent panic when deserializing malformed Duration
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    44b9567 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ba46f45 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    60e08f9 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    34f4b68 View commit details
    Browse the repository at this point in the history
  5. Undo macro exports from PR serde-rs#1917

    All of these macros are only used internally within the serde crate.
    There is no need for them to have #[macro_export] and need to be hidden
    from docs.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    b20214d View commit details
    Browse the repository at this point in the history
  6. Inline forward_deserializer into private::de for Str deserializers

    We shouldn't try to use the same macro for public and private types. The
    API for a private type can usually be pared much further down to save
    compile time, such as Debug and Copy and Clone impls.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    0a230e8 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    034fe25 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    d02eb22 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    c858a1f View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    85de92e View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    0b5c56b View commit details
    Browse the repository at this point in the history
  12. Merge pull request serde-rs#1959 from serde-rs/1917

    Touch up borrowed field identifiers PR
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    8f09aea View commit details
    Browse the repository at this point in the history
  13. Release 1.0.121

    dtolnay committed Jan 23, 2021
    Copy the full SHA
    bd588db View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    a5ecbdb View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    88ee470 View commit details
    Browse the repository at this point in the history
  16. Move RenameRule parse from trait fn to associated

    This will allow updating it to return an Err that borrows the input
    string, which is not possible with FromStr.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    ed04824 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    7db0982 View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    51d4563 View commit details
    Browse the repository at this point in the history
  19. Merge pull request serde-rs#1960 from serde-rs/renamerule

    Deduplicate RenameRule parse error message generation
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    661206d View commit details
    Browse the repository at this point in the history
  20. Parse rename rules based on table of rules

    This will make it possible to reuse the same table of recognized rules
    in the parse error message.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    990a502 View commit details
    Browse the repository at this point in the history
  21. Fix UPPERCASE rename rule variant to follow idiomatic variant naming

    This shouldn't have been named this way in PR serde-rs#1132.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    eaccae2 View commit details
    Browse the repository at this point in the history
  22. Copy the full SHA
    4e002ec View commit details
    Browse the repository at this point in the history
  23. Restore compatibility with rustc 1.31 in RenameRule error

    str::escape_debug wasn't stabilized until 1.34, whereas serde_derive
    currently supports an oldest version of 1.31.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    b7bad3a View commit details
    Browse the repository at this point in the history
  24. Merge pull request serde-rs#1961 from serde-rs/renamerule

    Provide list of recognized rename rules on parse error
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    6670a30 View commit details
    Browse the repository at this point in the history
  25. Merge pull request serde-rs#1920 from Mingun/track_caller

    Show correct location in error messages by tracking caller of utility `assert_tokens` functions
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    5fd5210 View commit details
    Browse the repository at this point in the history
  26. Copy the full SHA
    9add581 View commit details
    Browse the repository at this point in the history
  27. Keep conditional compilation cfg naming consistent with serde crate

    The serde crate's build.rs uses names like `core_duration` or
    `integer128`, not `has_core_duration` / `has_integer128`.
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    012ea8e View commit details
    Browse the repository at this point in the history
  28. Merge pull request serde-rs#1918 from Mingun/fix-serde-test

    Fix incorrect message in serializer tokens and correctly implement next_entry_seed
    dtolnay committed Jan 23, 2021
    Copy the full SHA
    fa6712d View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2021

  1. Copy the full SHA
    999b94d View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e6b6602 View commit details
    Browse the repository at this point in the history
  3. Ignore too_many_lines clippy pedantic lint in serde_test

        error: this function has too many lines (107/100)
           --> serde_test/src/de.rs:128:5
            |
        128 | /     fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Error>
        129 | |     where
        130 | |         V: Visitor<'de>,
        131 | |     {
        ...   |
        238 | |         }
        239 | |     }
            | |_____^
            |
        note: the lint level is defined here
           --> serde_test/src/lib.rs:149:52
            |
        149 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]
            |                                                    ^^^^^^^^^^^^^^^
            = note: `#[deny(clippy::too_many_lines)]` implied by `#[deny(clippy::pedantic)]`
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    84ad76b View commit details
    Browse the repository at this point in the history
  4. Return IdentifierDeserializer to just one associated type

    The BorrowedDeserializer was added in serde-rs#1917, but only makes sense for
    &str and &[u8], not for u64 which also needs to be have an
    IdentifierDeserializer impl.
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    b6a2d07 View commit details
    Browse the repository at this point in the history
  5. Restore compatibility with rustc <1.31 in Borrowed identifier deseria…

    …lizer
    
    The implied lifetime bound on T only works on 1.31+. Older versions fail
    with:
    
        error[E0309]: the parameter type `T` may not live long enough
            --> serde/src/private/de.rs:2548:37
             |
        2548 | pub struct Borrowed<'de, T: ?Sized>(pub &'de T);
             |                          --         ^^^^^^^^^^
             |                          |
             |                          help: consider adding an explicit lifetime bound `T: 'de`...
             |
        note: ...so that the reference type `&'de T` does not outlive the data it points at
            --> serde/src/private/de.rs:2548:37
             |
        2548 | pub struct Borrowed<'de, T: ?Sized>(pub &'de T);
             |                                     ^^^^^^^^^^
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    3f48ed3 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    3728d3c View commit details
    Browse the repository at this point in the history
  7. Revert "Regenerate macrotest outputs for PR serde-rs#1917"

    This reverts commit 999b94d.
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    5aa163f View commit details
    Browse the repository at this point in the history
  8. Merge pull request serde-rs#1962 from serde-rs/dupborrowed

    Eliminate duplicated borrowed and non-borrowed identifier deserialization
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    18e5b03 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    e24dbc4 View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    1f9f72b View commit details
    Browse the repository at this point in the history
  11. Copy the full SHA
    f6e7366 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    c67017d View commit details
    Browse the repository at this point in the history
  13. Make AST borrow checker happy

    taiki-e committed Jan 24, 2021
    Copy the full SHA
    e81f54f View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    9fd56cd View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    e61261e View commit details
    Browse the repository at this point in the history
  16. Add link to rust-lang/rust#67295

    dtolnay committed Jan 24, 2021
    Copy the full SHA
    82d0fe0 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    86c88be View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    fbcb223 View commit details
    Browse the repository at this point in the history
  19. Copy the full SHA
    ac4001e View commit details
    Browse the repository at this point in the history
  20. Copy the full SHA
    cdc2fa1 View commit details
    Browse the repository at this point in the history
  21. Merge pull request serde-rs#1963 from serde-rs/valuedebug

    Eliminate inferred bound on error type of value deserializer Debug impls
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    7d1bc1f View commit details
    Browse the repository at this point in the history
  22. Copy the full SHA
    2fd5212 View commit details
    Browse the repository at this point in the history
  23. Remove dependency on syn/visit feature

    The builtin visitor is fairly expensive to compile (3700 lines of code),
    particularly if something else in the dependency graph also enables
    syn/full. For the usage in serde_derive, it turns out to be easy to
    replace.
    dtolnay committed Jan 24, 2021
    Copy the full SHA
    85c6904 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2021

  1. Suppress clippy unused_self pedantic lint

    This usage is fine. It's mirroring trait signatures in syn::visit::Visit.
    
        error: unused `self` argument
           --> serde_derive/src/bound.rs:241:24
            |
        241 |         fn visit_macro(&mut self, _mac: &'ast syn::Macro) {}
            |                        ^^^^^^^^^
            |
        note: the lint level is defined here
           --> serde_derive/src/lib.rs:18:22
            |
        18  | #![deny(clippy::all, clippy::pedantic)]
            |                      ^^^^^^^^^^^^^^^^
            = note: `#[deny(clippy::unused_self)]` implied by `#[deny(clippy::pedantic)]`
            = help: consider refactoring to a associated function
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    6ea446f View commit details
    Browse the repository at this point in the history
  2. Suppress clippy should_implement_trait lint

    I think there is no ambiguity in from_str as a method name so "choose a
    less ambiguous method name" is unnecessary, and it can't be a FromStr
    impl in this case because FromStr's error type cannot borrow from the
    input string slice.
    
        warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str`
          --> serde_derive_internals/src/case.rs:50:5
           |
        50 | /     pub fn from_str(rename_all_str: &str) -> Result<Self, ParseError> {
        51 | |         for (name, rule) in RENAME_RULES {
        52 | |             if rename_all_str == *name {
        53 | |                 return Ok(*rule);
        ...  |
        58 | |         })
        59 | |     }
           | |_____^
           |
           = note: `#[warn(clippy::should_implement_trait)]` on by default
           = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    b91713e View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    d1975f3 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    ff0f467 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    bb7f94d View commit details
    Browse the repository at this point in the history
  6. Release 1.0.122

    dtolnay committed Jan 25, 2021
    Copy the full SHA
    ffed192 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    d88a474 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    48556a4 View commit details
    Browse the repository at this point in the history
  9. Merge pull request serde-rs#1965 from serde-rs/int

    Reduce post-macro-expansion code in integer deserialize impls
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    deaf600 View commit details
    Browse the repository at this point in the history
  10. Merge pull request serde-rs#1842 from Timmmm/fix2

    Allow floats to be deserialized from ints in tagged unions
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    1a3ef39 View commit details
    Browse the repository at this point in the history
  11. Merge pull request serde-rs#1831 from taiki-e/borrow-macro

    Collect lifetimes inside macro invocations
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    aeee73f View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    1c03647 View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    38edb47 View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    74ca066 View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    b0cc213 View commit details
    Browse the repository at this point in the history
  16. Merge pull request serde-rs#1966 from serde-rs/private

    Omit derive helpers in versions older than serde_derive msrv
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    dfeaf77 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    68bda7a View commit details
    Browse the repository at this point in the history
  18. Copy the full SHA
    6e800ff View commit details
    Browse the repository at this point in the history
  19. Copy the full SHA
    6c5bf70 View commit details
    Browse the repository at this point in the history
  20. Pare down PR 1830

    Unlike expr macros, macros in type position in a derive input are rare
    enough that it's not worth supporting for an issue that has such an easy
    workaround (just replace `Self` in the macro input with your type name).
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    7cec99c View commit details
    Browse the repository at this point in the history
  21. Touch up PR 1830

    dtolnay committed Jan 25, 2021
    Copy the full SHA
    033114a View commit details
    Browse the repository at this point in the history
  22. Copy the full SHA
    1f42358 View commit details
    Browse the repository at this point in the history
  23. Copy the full SHA
    e5efb6a View commit details
    Browse the repository at this point in the history
  24. Ignore some pedantic lints in serde_derive_internals from PR 1830

        error: item name ends with its containing module's name
          --> serde_derive_internals/src/receiver.rs:11:1
           |
        11 | / pub fn replace_receiver(input: &mut DeriveInput) {
        12 | |     let self_ty = {
        13 | |         let ident = &input.ident;
        14 | |         let ty_generics = input.generics.split_for_impl().1;
        ...  |
        19 | |     visitor.visit_data_mut(&mut input.data);
        20 | | }
           | |_^
           |
        note: the lint level is defined here
          --> serde_derive_internals/lib.rs:3:22
           |
        3  | #![deny(clippy::all, clippy::pedantic)]
           |                      ^^^^^^^^^^^^^^^^
           = note: `#[deny(clippy::module_name_repetitions)]` implied by `#[deny(clippy::pedantic)]`
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
    
        error: binding's name is too similar to existing binding
          --> serde_derive_internals/src/receiver.rs:31:29
           |
        31 |     fn self_to_qself(&self, qself: &mut Option<QSelf>, path: &mut Path) {
           |                             ^^^^^
           |
        note: the lint level is defined here
          --> serde_derive_internals/lib.rs:3:22
           |
        3  | #![deny(clippy::all, clippy::pedantic)]
           |                      ^^^^^^^^^^^^^^^^
           = note: `#[deny(clippy::similar_names)]` implied by `#[deny(clippy::pedantic)]`
        note: existing binding defined here
          --> serde_derive_internals/src/receiver.rs:31:23
           |
        31 |     fn self_to_qself(&self, qself: &mut Option<QSelf>, path: &mut Path) {
           |                       ^^^^
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
    
        error: unused `self` argument
           --> serde_derive_internals/src/receiver.rs:286:24
            |
        286 |     fn visit_macro_mut(&mut self, _mac: &mut Macro) {}
            |                        ^^^^^^^^^
            |
        note: the lint level is defined here
           --> serde_derive_internals/lib.rs:3:22
            |
        3   | #![deny(clippy::all, clippy::pedantic)]
            |                      ^^^^^^^^^^^^^^^^
            = note: `#[deny(clippy::unused_self)]` implied by `#[deny(clippy::pedantic)]`
            = help: consider refactoring to a associated function
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    b054ea4 View commit details
    Browse the repository at this point in the history
  25. Copy the full SHA
    6699b0b View commit details
    Browse the repository at this point in the history
  26. Copy the full SHA
    2ba9739 View commit details
    Browse the repository at this point in the history
  27. Merge pull request serde-rs#1970 from serde-rs/self

    Support `Self` inside fields that use serialize_with
    dtolnay committed Jan 25, 2021
    Copy the full SHA
    29cdf88 View commit details
    Browse the repository at this point in the history
  28. Release 1.0.123

    dtolnay committed Jan 25, 2021
    Copy the full SHA
    3d6c414 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2021

  1. Copy the full SHA
    de8ac1c View commit details
    Browse the repository at this point in the history