Merge pull request #247 from dtolnay/errorprovide

Pull in anyhow's new Error::provide support
This commit is contained in:
David Tolnay 2023-08-15 00:03:20 -07:00 committed by GitHub
commit 2fd79cd52a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {