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 non-rust-vmm group with 7 updates in the / directory:
4.5.20
4.5.21
1.0.69
2.0.3
0.2.162
0.2.164
1.0.214
1.0.215
1.1.37
1.2.1
0.7.2
0.7.3
0.4.8
0.4.9
Bumps the non-rust-vmm group with 4 updates in the /staging directory: clap, libc, clap_lex and regex-automata.
Updates
clap
from 4.5.20 to 4.5.21Release notes
Sourced from clap's releases.
Changelog
Sourced from clap's changelog.
Commits
03d7226
chore: Release3df70fb
docs: Update changelog3266c36
Merge pull request #5691 from epage/custom951762d
feat(complete): Allow any OsString-compatible type to be a CompletionCandidatebb6493e
feat(complete): Offer - as a path option27b348d
refactor(complete): Simplify ArgValueCandidates code49b8108
feat(complete): Add PathCompleter82a360a
feat(complete): Add ArgValueCompleter47aedc6
fix(complete): Ensure paths are sorted431e2bc
test(complete): Ensure ArgValueCandidates get filteredUpdates
thiserror
from 1.0.69 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.2Updates
libc
from 0.2.162 to 0.2.164Release notes
Sourced from libc's releases.
Changelog
Sourced from libc's changelog.
Commits
dad00cb
chore: release v0.2.16401ce562
Merge pull request #4051 from tgross35/stable-ci8153ac1
Merge pull request #4049 from tgross35/rust-version5f0d183
Merge pull request #4040 from tgross35/stable-msrv5125160
Merge pull request #4027 from rust-lang/release-plz-2024-11-12T07-15-20Z6093ce0
MacOS: moveifconf
tos_no_extra_traits
a4b5bf8
Remove the "main" workflowd7b6bf0
ci: Remove tests with rust < 1.630a976d3
ci: trim trailing whitespacecfd7ebf
chore: release v0.2.163Updates
serde
from 1.0.214 to 1.0.215Release notes
Sourced from serde's releases.
Commits
8939af4
Release 1.0.215fa5d58c
Use ui test syntax that does not interfere with rustfmt1a3cf4b
Update PR 2562 ui tests7d96352
Merge pull request #2857 from dtolnay/collide111ecc5
Update ui tests for warning on colliding aliasesedd6fe9
Revert "Add checks for conflicts for aliases"a20e924
Revert "pacify clippy"b1353a9
Merge pull request #2856 from dtolnay/denamec59e876
Produce a separate warning for every colliding name7f1e697
Merge pull request #2855 from dtolnay/namespanUpdates
cc
from 1.1.37 to 1.2.1Release notes
Sourced from cc's releases.
Changelog
Sourced from cc's changelog.
Commits
19fa89e
chore: release v1.2.1 (#1289)76a3970
When invokingcl -?
, set stdin to null (#1288)a0441c3
chore: release v1.1.38 (#1286)837ad79
feat: add i686-pc-windows-gnullvm prefix detection (#1283)58bd974
windows_registry: Allow only specifying the architecture (#1285)aa4a6cf
Fix WASM vs. WASI options (#1284)Updates
clap_builder
from 4.5.20 to 4.5.21Release notes
Sourced from clap_builder's releases.
Changelog
Sourced from clap_builder's changelog.
Commits
2920fb0
chore: Release8902627
docs: Update changelog79d696f
Merge pull request #5813 from epage/ignore479df35
fix(parser): Fill in defaults on ignored errora1d69ca
refactor(parser): Split up parsing from post-processing6827841
test(parser): Show bad ignore_errors defaulting case76d0049
test(parser): Verify defaulting on errors3f5c05c
test(parser): Ensure we are actually testing ignore_errorsba4745d
chore(ci): Fix use of permissions22944b4
chore(ci): Use matrix for tracking the runnerUpdates
clap_lex
from 0.7.2 to 0.7.3Changelog
Sourced from clap_lex's changelog.
Commits
2920fb0
chore: Release8902627
docs: Update changelog79d696f
Merge pull request #5813 from epage/ignore479df35
fix(parser): Fill in defaults on ignored errora1d69ca
refactor(parser): Split up parsing from post-processing6827841
test(parser): Show bad ignore_errors defaulting case76d0049
test(parser): Verify defaulting on errors3f5c05c
test(parser): Ensure we are actually testing ignore_errorsba4745d
chore(ci): Fix use of permissions22944b4
chore(ci): Use matrix for tracking the runnerUpdates
regex-automata
from 0.4.8 to 0.4.9Commits
Updates
serde_derive
from 1.0.214 to 1.0.215Release notes
Sourced from serde_derive's releases.
Commits
8939af4
Release 1.0.215fa5d58c
Use ui test syntax that does not interfere with rustfmt1a3cf4b
Update PR 2562 ui tests7d96352
Merge pull request #2857 from dtolnay/collide111ecc5
Update ui tests for warning on colliding aliasesedd6fe9
Revert "Add checks for conflicts for aliases"a20e924
Revert "pacify clippy"b1353a9
Merge pull request #2856 from dtolnay/denamec59e876
Produce a separate warning for every colliding name7f1e697
Merge pull request #2855 from dtolnay/namespanUpdates
clap
from 4.5.20 to 4.5.21Release notes
Sourced from clap's releases.
Changelog
Sourced from clap's changelog.
Commits
03d7226
chore: Release3df70fb
docs: Update changelog3266c36
Merge pull request #5691 from epage/custom951762d
feat(complete): Allow any OsString-compatible type to be a CompletionCandidatebb6493e
feat(complete): Offer - as a path option27b348d
refactor(complete): Simplify ArgValueCandidates code49b8108
feat(complete): Add PathCompleter82a360a
feat(complete): Add ArgValueCompleter47aedc6
fix(complete): Ensure paths are sorted431e2bc
test(complete): Ensure ArgValueCandidates get filteredUpdates
libc
from 0.2.162 to 0.2.164Release notes
Sourced from libc's releases.
Changelog
Sourced from libc's changelog.
Commits
dad00cb
chore: release v0.2.16401ce562
Merge pull request #4051 from tgross35/stable-ci8153ac1
Merge pull request #4049 from tgross35/rust-version5f0d183
Merge pull request #4040 from tgross35/stable-msrv5125160
Merge pull request #4027 from rust-lang/release-plz-2024-11-12T07-15-20Z6093ce0
MacOS: moveifconf
tos_no_extra_traits
a4b5bf8
Remove the "main" workflowd7b6bf0
ci: Remove tests with rust < 1.630a976d3
ci: trim trailing whitespacecfd7ebf
chore: release v0.2.163Updates
clap_builder
from 4.5.20 to 4.5.21Release notes
Sourced from clap_builder's releases.
Changelog
Sourced from clap_builder's changelog.
Commits
2920fb0
chore: Release8902627
docs: Update changelog79d696f
Merge pull request #5813 from epage/ignore479df35
fix(parser): Fill in defaults on ignored errora1d69ca
refactor(parser): Split up parsing from post-processing6827841
test(parser): Show bad ignore_errors defaulting case76d0049
test(parser): Verify defaulting on errors3f5c05c
test(parser): Ensure we are actually testing ignore_errorsba4745d
chore(ci): Fix use of permissions22944b4
chore(ci): Use matrix for tracking the runnerUpdates
clap_lex
from 0.7.2 to 0.7.3Changelog
Sourced from clap_lex's changelog.
Commits
2920fb0
chore: Release8902627
docs: Update changelog79d696f
Merge pull request #5813 from epage/ignore479df35
fix(parser): Fill in defaults on ignored errora1d69ca
refactor(parser): Split up parsing from post-processing6827841
test(parser): Show bad ignore_errors defaulting case76d0049
test(parser): Verify defaulting on errors3f5c05c
test(parser): Ensure we are actually testing ignore_errorsba4745d
chore(ci): Fix use of permissions22944b4
chore(ci): Use matrix for tracking the runnerUpdates
regex-automata
from 0.4.8 to 0.4.9Commits
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