-
Notifications
You must be signed in to change notification settings - Fork 125
Comparing changes
Open a pull request
base repository: JelteF/derive_more
base: v1.0.0
head repository: JelteF/derive_more
compare: v2.0.0
- 17 commits
- 71 files changed
- 5 contributors
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 33f95a7 - Browse repository at this point
Copy the full SHA 33f95a7View commit details
Commits on Aug 20, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for d7c4a68 - Browse repository at this point
Copy the full SHA d7c4a68View commit details
Commits on Aug 29, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 06acaad - Browse repository at this point
Copy the full SHA 06acaadView commit details
Commits on Sep 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c8a9f8f - Browse repository at this point
Copy the full SHA c8a9f8fView commit details -
Fix ambiguous associated item for
TryFrom
,TryInto
andFromStr
(#……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.
Configuration menu - View commit details
-
Copy full SHA for 71df46c - Browse repository at this point
Copy the full SHA 71df46cView commit details
Commits on Sep 9, 2024
-
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>
Configuration menu - View commit details
-
Copy full SHA for 3216eaf - Browse repository at this point
Copy the full SHA 3216eafView commit details
Commits on Nov 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5263c72 - Browse repository at this point
Copy the full SHA 5263c72View commit details
Commits on Nov 28, 2024
-
Test
full
feature separately inno_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.
Configuration menu - View commit details
-
Copy full SHA for 6844e63 - Browse repository at this point
Copy the full SHA 6844e63View commit details
Commits on Nov 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 604dba8 - Browse repository at this point
Copy the full SHA 604dba8View commit details
Commits on Jan 2, 2025
-
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>
Configuration menu - View commit details
-
Copy full SHA for 8270be1 - Browse repository at this point
Copy the full SHA 8270be1View commit details
Commits on Jan 3, 2025
-
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)
Configuration menu - View commit details
-
Copy full SHA for 17d61c3 - Browse repository at this point
Copy the full SHA 17d61c3View commit details
Commits on Jan 14, 2025
-
Configuration menu - View commit details
-
Copy full SHA for cc9957e - Browse repository at this point
Copy the full SHA cc9957eView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 7b23de3 - Browse repository at this point
Copy the full SHA 7b23de3View commit details
Commits on Jan 16, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f14c7a7 - Browse repository at this point
Copy the full SHA f14c7a7View commit details
Commits on Jan 18, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d391493 - Browse repository at this point
Copy the full SHA d391493View commit details
Commits on Feb 1, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c5e5e82 - Browse repository at this point
Copy the full SHA c5e5e82View commit details
Commits on Feb 3, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d6c3315 - Browse repository at this point
Copy the full SHA d6c3315View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.0.0...v2.0.0