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.
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);
Code containing invocations of thiserror's derive(Error) must now have a direct dependency on the thiserror crate regardless of the error data structure's contents (#368, #369, #370, #372)
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the rust group with 5 updates:
50de349
|120c8e3
82fcf3e
|09a1e94
1.41.0
1.41.1
1.0.92
1.0.93
1.0.68
2.0.3
Updates
twitch_api
from50de349
to120c8e3
Commits
120c8e3
Merge pull request #452 from twitch-rs/feat/more-eventsub98faa52
feat: addchat.shared_chat.end
fac14dd
feat: addchannel.shared_chat.update
c70bb7b
feat: addchannel.shared_chat.begin
3925465
Merge pull request #448 from twitch-rs/feat/remaining-helix-streams310db95
feat: addGet Stream Markers
943ae2d
feat: addCreate Stream Marker
299d64d
feat: addGet Stream Key
6479326
Merge pull request #447 from twitch-rs/feat/update-user59fbe74
feat: addUpdate User
Updates
twitch-pubsub
from82fcf3e
to09a1e94
Commits
09a1e94
chore(deps): bump the rust group with 6 updates (#36)Updates
tokio
from 1.41.0 to 1.41.1Release notes
Sourced from tokio's releases.
Commits
bb7ca75
chore: prepare Tokio v1.41.1 (#6959)4a34b77
metrics: fix bug with wrong number of buckets for the histogram (#6957)8897885
docs: fix mismatched backticks in CONTRIBUTING.md (#6951)0dbdd19
ci: update cargo-check-external-types to 0.1.13 (#6949)94e55c0
net: fix typo inTcpStream
internal comment (#6944)4468f27
metrics: fixed flakyworker_steal_count
test (#6932)070a825
metrics: removed race condition from global_queue_depth_multi_thread test (#6...946401c
net: displaynet
requirement fornet::UdpSocket
in docs (#6938)0c01fd2
ci: use patched version of cargo-check-external-types to fix CI failure (#6937)ebe2416
ci: use cargo deny (#6931)Updates
anyhow
from 1.0.92 to 1.0.93Release notes
Sourced from anyhow's releases.
Commits
713bda9
Release 1.0.93f91c247
Merge pull request #391 from dtolnay/thiserror2a3901c
Isolate old rustc version tests from needing anyhow dev-dependencies in lockfile3ca2cdd
Update dev-dependencies to thiserror v2Updates
thiserror
from 1.0.68 to 2.0.3Release notes
Sourced from thiserror's releases.
... (truncated)
Commits
15fd26e
Release 2.0.37046023
Simplify how has_bonus_display is accumulated9cc1d0b
Merge pull request #384 from dtolnay/nowrap1d040f3
Use Var wrapper only for Pointer formatting6a6132d
Extend no-display ui test to cover another fmt traita061beb
Merge pull request #383 from dtolnay/both6388293
Support Display and Debug of same path in error messagedc0359e
Defer binding_value construction520343e
Add test of Debug and Display of paths49be39d
Release 2.0.2Dependabot 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