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: JelteF/derive_more
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: JelteF/derive_more
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.0
Choose a head ref
  • 17 commits
  • 71 files changed
  • 5 contributors

Commits on Aug 7, 2024

  1. Fix typo in changelog

    JelteF committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    33f95a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Consider associated types of type parameters for implied bounds (#399)

    Related to #387
    
    ## Synopsis
    
    After #387, the following snippet fails to compile:
    ```rust
    #[derive(Debug)]
    struct AssocType<I: Iterator> {
        iter: I,
        elem: Option<I::Item>,
    }
    ```
    This happens, because the implied bound `Option<I::Item>: Debug` is not
    generated.
    
    ## Solution
    
    Correct the `ContainsGenericsExt::contains_generics()` implementations
    to consider associated types of the type parameter.
    tyranron authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    d7c4a68 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Add #[allow(unreachable_code)] to generated impls for ! type (#404,

    #400)
    
    ## Synopsis
    
    For `!` never type used in trait signatures, `rustc` emits
    `unreachable_code` warning ignoring the `#[automatically_derived]`
    attribute.
    
    ## Solution
    
    Add `#[allow(unreachable_code)]` to generated `impl`s to suppress such
    warnings for `!` and similar types.
    tyranron authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    06acaad View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Fix compile fail test output

    JelteF committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    c8a9f8f View commit details
    Browse the repository at this point in the history
  2. Fix ambiguous associated item for TryFrom, TryInto and FromStr (#…

    …410)
    
    Resolves #409
    
    ## Synopsis
    
    Fixes the "abiguous associated item" error when deriving `TryFrom`,
    `TryInto` or `FromStr` when those types have an associated item called
    `Error` or `Err` respectively.
    
    All these derives produce that error:
    ```rust
    use derive_more::*;
    
    #[derive(TryFrom)]
    #[try_from(repr)]
    #[repr(u8)]
    enum LogLevel {
        Error,
    }
    
    #[derive(FromStr)]
    enum EnumNoFields {
        Err,
    }
    
    #[derive(TryInto)]
    enum MixedInts {
        Foo(LogLevel),
    }
    ```
    
    ## Solution
    
    Replace  `Self::Error` with the type that's behind it.
    bluurryy authored Sep 8, 2024
    Configuration menu
    Copy the full SHA
    71df46c View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Swap macro re-export modules (#406, #405)

    As was decided in #405, the crate's root should re-export only macros.
    Re-exporting of macros along with their corresponding traits should be
    moved to `with_trait` module.
    
    Co-authored-by: Jelte Fennema-Nio <github-tech@jeltef.nl>
    tyranron and JelteF authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    3216eaf View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    5263c72 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Test full feature separately in no_std on CI (#424, #420)

    ## Synopsis
    
    `cargo test --no-default-features --features=full` fails imposing
    problems on other CIs.
    
    ## Solution
    
    - Consider testing `full` Cargo feature in `test-features` CI job to
    handle such regressions.
    - Update the relevant tests to run under `no_std` too.
    tyranron authored Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6844e63 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. Configuration menu
    Copy the full SHA
    604dba8 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2025

  1. Update itertools crate from 0.13 to 0.14 version (#433)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 2, 2025
    Configuration menu
    Copy the full SHA
    8270be1 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2025

  1. Fix transparency and behavior of shared formatting on enums (#395, #377

    …, #411)
    
    - fix top-level `#[display("...")]` attribute on an enum being incorrectly treated as transparent or wrapping
    - make top-level `#[display("...")]` attribute on an enum to have defaulting behavior instead of replacing when no wrapping is possible (no `_variant` placeholder)
    tyranron authored Jan 3, 2025
    Configuration menu
    Copy the full SHA
    17d61c3 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2025

  1. Configuration menu
    Copy the full SHA
    cc9957e View commit details
    Browse the repository at this point in the history
  2. Update convert_case crate from 0.6 to 0.7 version (#436)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    7b23de3 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2025

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

Commits on Jan 18, 2025

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

Commits on Feb 1, 2025

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

Commits on Feb 3, 2025

  1. Configuration menu
    Copy the full SHA
    d6c3315 View commit details
    Browse the repository at this point in the history
Loading