Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Bump thiserror from 1.0.64 to 2.0.4 #286

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2024

Bumps thiserror from 1.0.64 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 added the dependencies Pull requests that update a dependency file label Dec 4, 2024
@dependabot dependabot bot force-pushed the dependabot/cargo/thiserror-2.0.4 branch from d1bfb05 to 2ad60d3 Compare December 4, 2024 18:15
@sjackman
Copy link
Contributor

sjackman commented Dec 4, 2024

@dependabot rebase

Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.64 to 2.0.4.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@1.0.64...2.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/thiserror-2.0.4 branch from 2ad60d3 to 3cfcc96 Compare December 4, 2024 18:31
@sjackman
Copy link
Contributor

sjackman commented Dec 4, 2024

error[duplicate]: found 2 duplicate entries for crate 'thiserror'
    ┌─ /github/workspace/Cargo.lock:124:1
    │  
124 │ ╭ thiserror 1.0.69 registry+https://github.com/rust-lang/crates.io-index
125 │ │ thiserror 2.0.4 registry+https://github.com/rust-lang/crates.io-index
    │ ╰─────────────────────────────────────────────────────────────────────^ lock entries
    │  
    = thiserror v1.0.69
      ├── bio v2.0.3
      │   └── fastq_set v0.5.3
      └── bio-types v1.0.1
          └── bio v2.0.3 (*)
    = thiserror v2.0.4
      └── fastq_set v0.5.3

https://github.com/10XGenomics/fastq_set/actions/runs/12166071120/job/33931478664?pr=286#step:7:67

rust-bio depends on thiserror version 1.
@dependabot ignore this minor version

@dependabot dependabot bot closed this Dec 4, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 4, 2024

OK, I won't notify you about version 2.0.x again, unless you re-open this PR.

@dependabot dependabot bot deleted the dependabot/cargo/thiserror-2.0.4 branch December 4, 2024 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant