Pull in anyhow's new Error::provide support

This commit is contained in:
David Tolnay 2023-08-15 00:00:07 -07:00
parent 06f1895832
commit 78e0ffed90
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ rust-version = "1.56"
thiserror-impl = { version = "=1.0.45", path = "impl" }
[dev-dependencies]
anyhow = "1.0.71"
anyhow = "1.0.73"
ref-cast = "1.0.18"
rustversion = "1.0.13"
trybuild = { version = "1.0.81", features = ["diff"] }

View File

@ -136,7 +136,7 @@ pub mod structs {
let error = AnyhowBacktrace {
source: anyhow::Error::msg("..."),
};
assert!(error::request_ref::<Backtrace>(&error).is_some() || true); // FIXME
assert!(error::request_ref::<Backtrace>(&error).is_some());
let error = BoxDynErrorBacktrace {
source: Box::new(PlainBacktrace {