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)
Features
Support disabling thiserror's standard library dependency by disabling the default "std" Cargo feature: thiserror = { version = "2", default-features = false } (#373)
Support using r#source as field name to opt out of a field named "source" being treated as an error's Error::source() (#350)
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 everything group with 3 updates in the / directory: anyhow, thiserror and tempfile.
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.0Release notes
Sourced from thiserror's releases.
... (truncated)
Commits
6097d61
Release 2.0.040113bd
Merge pull request #373 from dtolnay/nostdd8ed5fb
Allow disabling std dependency on 1.81+8277ec4
Merge pull request #372 from dtolnay/stdbacktraced6d896d
Access Backtrace exclusively through ::thiserrord14adfb
Merge pull request #371 from dtolnay/coreprovider2e99c51
Drop Provider API support in pre-1.81 nightliesbf3d6f3
Merge pull request #370 from dtolnay/stderrore0e9943
Access Error trait exclusively through ::thiserrordb7825e
Merge pull request #369 from dtolnay/stdpathUpdates
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)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