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)
You can now use environment variables in #[files] with an optional default value (see #277).
You can now set a base_dir for #[files] with the $[base_dir = "..."] attribute (see #277).
[0.22.0] 2024/8/4
Changed
Now it's possible destructuring input values both for cases, values and fixtures. See #231 for details
Add
Implemented #[ignore] attribute to ignore test parameters during fixtures resolution/injection. See #228 for details
Fixed
Lot of typo in code
[0.21.0] 2024/6/1
Changed
Add feature crate-name enabled by default to opt-in crate rename
support. See #258
[0.20.0] 2024/5/30
Add
Implemented #[by_ref] attribute to take get a local lifetime for test arguments.
See #241 for more details. Thanks to
@narpfel for suggesting it and useful discussions.
Support for import rstest with another name. See #221
Fixed
Don't remove Lifetimes from test function if any. See #230#241 for more details.
PathBuf does no longer need to be
in scope when using #[files] (see #242)
#[from(now::accept::also::path::for::fixture)] See #246
for more details
You can now use environment variables in #[files] with an optional default value (see #277).
You can now set a base_dir for #[files] with the $[base_dir = "..."] attribute (see #277).
[0.22.0] 2024/8/4
Changed
Now it's possible destructuring input values both for cases, values and fixtures. See #231 for details
Add
Implemented #[ignore] attribute to ignore test parameters during fixtures resolution/injection. See #228 for details
Fixed
Lot of typo in code
[0.21.0] 2024/6/1
Changed
Add feature crate-name enabled by default to opt-in crate rename
support. See #258
[0.20.0] 2024/5/30
Add
Implemented #[by_ref] attribute to take get a local lifetime for test arguments.
See #241 for more details. Thanks to
@narpfel for suggesting it and useful discussions.
Support for import rstest with another name. See #221
Fixed
Don't remove Lifetimes from test function if any. See #230#241 for more details.
PathBuf does no longer need to be
in scope when using #[files] (see #242)
#[from(now::accept::also::path::for::fixture)] See #246
for more details
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 vhost-device group with 9 updates:
1.0.68
2.0.3
0.2.161
0.2.162
3.13.0
3.14.0
0.19.0
0.23.0
1.1.36
1.1.37
2.1.1
2.2.0
0.19.0
0.23.0
0.38.39
0.38.40
1.0.68
1.0.69
Updates
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.2Updates
libc
from 0.2.161 to 0.2.162Release notes
Sourced from libc's releases.
Changelog
Sourced from libc's changelog.
Commits
b8c255c
chore: release v0.2.162acb0c19
Merge pull request #4020 from tgross35/backport-collard-greens33a772c
feat: addioctl
flags inlinux/if_tun.h
a3ca238
freebsd adding CLOSE_RANGE_CLOEXEC flag8c88d9a
armv7-unknown-freebsd: fix test errors regarding __gregset_tc0c9391
Fix the build on armv7-unknown-freebsdd435e9b
Merge pull request #4006 from tgross35/backport-spinach7ee37b9
Merge pull request #4017 from tgross35/backport-watercress073c7b4
Fix definition of FIODGNAME on 32-bit FreeBSD255b039
Fix size of struct kinfo_file on 32-bit FreeBSDUpdates
tempfile
from 3.13.0 to 3.14.0Changelog
Sourced from tempfile's changelog.
Commits
b232c58
chore: release 3.14.0 (#307)a23f396
fix: enable wasip2 feature for wasm32-wasip2 target (#305)f162807
ci: switch from cargo-wasi to directly using the wasip1 target (#306)fa8ad00
allow older windows-sys (#304)335d91d
fix: expose SpooledData enum (#301)Updates
rstest
from 0.19.0 to 0.23.0Release notes
Sourced from rstest's releases.
Changelog
Sourced from rstest's changelog.
Commits
da11d4e
Update dependency and prepare the release0c6e203
Update checkout list20e8858
Make clippy happy57a9342
Playground should use dev package8a04803
Removed the useless build rerun variable8c232bc
Add a test for invalid base_dir value3520861
Add tests for replace_env_vars465a401
Add unit tests for parsing attributes, and add base_dira970613
Add a test for declared environment variablesc65d1c0
Add tests and #[ignore_missing_env_vars]Updates
cc
from 1.1.36 to 1.1.37Release notes
Sourced from cc's releases.
Changelog
Sourced from cc's changelog.
Commits
5835783
chore: release v1.1.37 (#1282)15d2f7d
Use relative directory for obj files hash (#1270)8120aed
Regenerate target info (#1280)Updates
fastrand
from 2.1.1 to 2.2.0Release notes
Sourced from fastrand's releases.
Changelog
Sourced from fastrand's changelog.
Commits
1b93479
v2.2.08ad2283
ci: Use "v2.0.0" branch for security check (#91)cfc0ab0
Update rustsec/audit-check branch name to main6dee614
Expose missing fill method in global_rng moduleUpdates
rstest_macros
from 0.19.0 to 0.23.0Release notes
Sourced from rstest_macros's releases.
Changelog
Sourced from rstest_macros's changelog.
Commits
da11d4e
Update dependency and prepare the release0c6e203
Update checkout list20e8858
Make clippy happy57a9342
Playground should use dev package8a04803
Removed the useless build rerun variable8c232bc
Add a test for invalid base_dir value3520861
Add tests for replace_env_vars465a401
Add unit tests for parsing attributes, and add base_dira970613
Add a test for declared environment variablesc65d1c0
Add tests and #[ignore_missing_env_vars]Updates
rustix
from 0.38.39 to 0.38.40Commits
309c288
chore: Release rustix version 0.38.40feb5227
Clarifygetppid
documentation: explain howNone
can occur (#1209)81021ad
DisableAF_NCA
,VSTATUS
,VERASE2
, andfcntl_lock
on Solaris. (#1211)c9d06b2
Migrate from wasm32-wasi (no longer exists on nightly) to wasm32-wasip1 (#1210)8c50519
Disable epoll support on Solaris. (#1208)Updates
thiserror-impl
from 1.0.68 to 1.0.69Release notes
Sourced from thiserror-impl's releases.
Commits
41938bd
Release 1.0.699d6506e
Merge pull request #382 from dtolnay/hang591a44d
Fix fallback fmt expression parser hang5b36e37
Add ui test of invalid expression syntax in display attributeDependabot 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