Pull in Provider impl from anyhow 1.0.65

This commit is contained in:
David Tolnay 2022-09-13 11:53:57 -07:00
parent 2ca76edd6e
commit 1a90b77165
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,7 @@ rust-version = "1.31"
thiserror-impl = { version = "=1.0.34", path = "impl" }
[dev-dependencies]
anyhow = "1.0.64"
anyhow = "1.0.65"
ref-cast = "1.0"
rustversion = "1.0"
trybuild = { version = "1.0.49", features = ["diff"] }

View File

@ -140,8 +140,7 @@ pub mod structs {
let error = AnyhowBacktrace {
source: anyhow::Error::msg("..."),
};
// FIXME: change back to is_some after `impl Provider for anyhow::Error` exists.
assert!(any::request_ref::<Backtrace>(&error).is_none());
assert!(any::request_ref::<Backtrace>(&error).is_some());
let error = BoxDynErrorBacktrace {
source: Box::new(PlainBacktrace {