summaryrefslogtreecommitdiffstats
path: root/vendor/anyhow/src/context.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
commitd1b2d29528b7794b41e66fc2136e395a02f8529b (patch)
treea4a17504b260206dec3cf55b2dca82929a348ac2 /vendor/anyhow/src/context.rs
parentReleasing progress-linux version 1.72.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.tar.xz
rustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.zip
Merging upstream version 1.73.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/anyhow/src/context.rs')
-rw-r--r--vendor/anyhow/src/context.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/anyhow/src/context.rs b/vendor/anyhow/src/context.rs
index 9df86937b..d81b9a769 100644
--- a/vendor/anyhow/src/context.rs
+++ b/vendor/anyhow/src/context.rs
@@ -4,7 +4,7 @@ use core::convert::Infallible;
use core::fmt::{self, Debug, Display, Write};
#[cfg(backtrace)]
-use std::any::{Demand, Provider};
+use std::error::Request;
mod ext {
use super::*;
@@ -144,8 +144,8 @@ where
}
#[cfg(backtrace)]
- fn provide<'a>(&'a self, demand: &mut Demand<'a>) {
- StdError::provide(&self.error, demand);
+ fn provide<'a>(&'a self, request: &mut Request<'a>) {
+ StdError::provide(&self.error, request);
}
}
@@ -158,8 +158,8 @@ where
}
#[cfg(backtrace)]
- fn provide<'a>(&'a self, demand: &mut Demand<'a>) {
- Provider::provide(&self.error, demand);
+ fn provide<'a>(&'a self, request: &mut Request<'a>) {
+ Error::provide(&self.error, request);
}
}