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.211
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.213
Choose a head ref
  • 11 commits
  • 10 files changed
  • 1 contributor

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    29d4f3e View commit details
    Browse the repository at this point in the history
  2. Add regression test for issue 2844

        error[E0424]: expected value, found module `self`
          --> test_suite/tests/regression/issue2844.rs:13:19
           |
        5  |         #[derive(Serialize, Deserialize)]
           |                  --------- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters
        ...
        13 | declare_in_macro!("with");
           |                   ^^^^^^ `self` value is a keyword only available in methods with a `self` parameter
    
        error[E0425]: cannot find value `__s` in this scope
          --> test_suite/tests/regression/issue2844.rs:13:19
           |
        13 | declare_in_macro!("with");
           |                   ^^^^^^ not found in this scope
    
        error[E0425]: cannot find value `__deserializer` in this scope
          --> test_suite/tests/regression/issue2844.rs:13:19
           |
        13 | declare_in_macro!("with");
           |                   ^^^^^^ not found in this scope
    dtolnay committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    0058c72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1e36ef5 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2845 from dtolnay/withlocal

    Fix hygiene of macro-generated local variable accesses in serde(with) wrappers
    dtolnay authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    1ac054b View commit details
    Browse the repository at this point in the history
  5. Release 1.0.212

    dtolnay committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    7ae1b5f View commit details
    Browse the repository at this point in the history
  6. Ignore trivially_copy_pass_by_ref pedantic clippy lint in test

        warning: this argument (4 byte) is passed by reference, but would be more efficient if passed by value (limit: 8 byte)
          --> test_suite/tests/regression/issue2844.rs:18:28
           |
        18 |     pub fn serialize<S>(_: &i32, _: S) -> Result<S::Ok, S::Error>
           |                            ^^^^ help: consider passing by value instead: `i32`
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
           = note: `-W clippy::trivially-copy-pass-by-ref` implied by `-W clippy::pedantic`
           = help: to override `-W clippy::pedantic` add `#[allow(clippy::trivially_copy_pass_by_ref)]`
    dtolnay committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    49e11ce View commit details
    Browse the repository at this point in the history
  7. Add regression test for issue 2846

        error[E0425]: cannot find value `__e` in this scope
          --> test_suite/tests/regression/issue2846.rs:12:19
           |
        12 | declare_in_macro!("with");
           |                   ^^^^^^ not found in this scope
    dtolnay committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    fdc36e5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b60e409 View commit details
    Browse the repository at this point in the history
  9. Ignore dead_code warning in regression test

        warning: field `0` is never read
          --> test_suite/tests/regression/issue2846.rs:8:45
           |
        8  |         pub struct S(#[serde(with = $with)] i32);
           |                    - field in this struct   ^^^
        ...
        12 | declare_in_macro!("with");
           | ------------------------- in this macro invocation
           |
           = help: consider removing this field
           = note: `#[warn(dead_code)]` on by default
           = note: this warning originates in the macro `declare_in_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
    dtolnay committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    79925ac View commit details
    Browse the repository at this point in the history
  10. Merge pull request #2847 from dtolnay/newtypewith

    Hygiene for macro-generated newtype struct deserialization with `with` attr
    dtolnay authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    ef0ed22 View commit details
    Browse the repository at this point in the history
  11. Release 1.0.213

    dtolnay committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    58a8d22 View commit details
    Browse the repository at this point in the history
Loading