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

build(deps): bump thiserror from 1.0.69 to 2.0.4 #871

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 20, 2025

Bumps thiserror from 1.0.69 to 2.0.4.

Release notes

Sourced from thiserror's releases.

2.0.4

  • Eliminate needless_lifetimes clippy lint in generated From impls (#391, thanks @​matt-phylum)

2.0.3

  • Support the same Path field being repeated in both Debug and Display representation in error message (#383)
  • Improve error message when a format trait used in error message is not implemented by some field (#384)

2.0.2

  • Fix hang on invalid input inside #[error(...)] attribute (#382)

2.0.1

  • Support errors that contain a dynamically sized final field (#375)
  • Improve inference of trait bounds for fields that are interpolated multiple times in an error message (#377)

2.0.0

Breaking changes

  • Referencing keyword-named fields by a raw identifier like {r#type} inside a format string is no longer accepted; simply use the unraw name like {type} (#347)

    This aligns thiserror with the standard library's formatting macros, which gained support for implicit argument capture later than the release of this feature in thiserror 1.x.

    #[derive(Error, Debug)]
    #[error("... {type} ...")]  // Before: {r#type}
    pub struct Error {
        pub r#type: Type,
    }
  • Trait bounds are no longer inferred on fields whose value is shadowed by an explicit named argument in a format message (#345)

    // Before: impl<T: Octal> Display for Error<T>
    // After: impl<T> Display for Error<T>
    #[derive(Error, Debug)]
    #[error("{thing:o}", thing = "...")]
    pub struct Error<T> {
        thing: T,
    }
  • Tuple structs and tuple variants can no longer use numerical {0} {1} access at the same time as supplying extra positional arguments for a format message, as this makes it ambiguous whether the number refers to a tuple field vs a different positional arg (#354)

    #[derive(Error, Debug)]
    #[error("ambiguous: {0} {}", $N)]
    //                  ^^^ Not allowed, use #[error("... {0} {n}", n = $N)]
    pub struct TupleError(i32);

... (truncated)

Commits
  • 70a1261 Release 2.0.4
  • 4fde284 Merge pull request #391 from matt-phylum/needless-lifetimes
  • aa19b7c suppress needless_lifetimes lints from clippy 0.1.83
  • ad2f20b Use ui test syntax that does not interfere with rustfmt
  • 15fd26e Release 2.0.3
  • 7046023 Simplify how has_bonus_display is accumulated
  • 9cc1d0b Merge pull request #384 from dtolnay/nowrap
  • 1d040f3 Use Var wrapper only for Pointer formatting
  • 6a6132d Extend no-display ui test to cover another fmt trait
  • a061beb Merge pull request #383 from dtolnay/both
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner January 20, 2025 15:38
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jan 20, 2025
Copy link

github-actions bot commented Jan 20, 2025

🐰 Bencher Report

Branchdependabot/cargo/thiserror-2.0.4
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
Commit add f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
18.91
Commit add f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
6.73
Commit add f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
9.41
Commit add f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
11.84
Commit add f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
14.94
Commit add f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
16.85
Commit add f(number clients)/cs1/mem/1002📈 view plot
🚷 view threshold
985.46
Commit add f(number clients)/cs1/mem/2📈 view plot
🚷 view threshold
6.72
Commit add f(number clients)/cs1/mem/202📈 view plot
🚷 view threshold
84.78
Commit add f(number clients)/cs1/mem/402📈 view plot
🚷 view threshold
220.52
Commit add f(number clients)/cs1/mem/602📈 view plot
🚷 view threshold
426.35
Commit add f(number clients)/cs1/mem/802📈 view plot
🚷 view threshold
673.19
Commit pending proposals f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
116.10
Commit pending proposals f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
28.32
Commit pending proposals f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
46.21
Commit pending proposals f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
61.35
Commit pending proposals f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
79.67
Commit pending proposals f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
94.58
Commit pending proposals f(pending size)/cs1/mem/1📈 view plot
🚷 view threshold
19.36
Commit pending proposals f(pending size)/cs1/mem/101📈 view plot
🚷 view threshold
116.70
Commit pending proposals f(pending size)/cs1/mem/21📈 view plot
🚷 view threshold
35.88
Commit pending proposals f(pending size)/cs1/mem/41📈 view plot
🚷 view threshold
57.11
Commit pending proposals f(pending size)/cs1/mem/61📈 view plot
🚷 view threshold
76.35
Commit pending proposals f(pending size)/cs1/mem/81📈 view plot
🚷 view threshold
95.58
Commit remove f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
27.61
Commit remove f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
6.69
Commit remove f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
9.11
Commit remove f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
12.11
Commit remove f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
17.22
Commit remove f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
22.02
Commit remove f(number clients)/cs1/mem/1002📈 view plot
🚷 view threshold
30.98
Commit remove f(number clients)/cs1/mem/2📈 view plot
🚷 view threshold
137.86
Commit remove f(number clients)/cs1/mem/202📈 view plot
🚷 view threshold
116.06
Commit remove f(number clients)/cs1/mem/402📈 view plot
🚷 view threshold
93.55
Commit remove f(number clients)/cs1/mem/602📈 view plot
🚷 view threshold
72.43
Commit remove f(number clients)/cs1/mem/802📈 view plot
🚷 view threshold
51.07
Commit update f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
138.24
Commit update f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
6.79
Commit update f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
33.75
Commit update f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
60.01
Commit update f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
87.12
Commit update f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
112.66
🐰 View full continuous benchmarking report in Bencher

@SimonThormeyer
Copy link
Contributor

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/cargo/thiserror-2.0.4 branch from 1d2b435 to e30666c Compare January 22, 2025 10:58
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.69 to 2.0.4.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@1.0.69...2.0.4)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@istankovic istankovic force-pushed the dependabot/cargo/thiserror-2.0.4 branch from e30666c to 7d7f22f Compare January 22, 2025 15:07
@istankovic istankovic merged commit 7d7f22f into main Jan 22, 2025
@istankovic istankovic deleted the dependabot/cargo/thiserror-2.0.4 branch January 22, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants