about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBugen Zhao <i@bugenzhao.com>2023-10-31 16:35:59 +0800
committerBugen Zhao <i@bugenzhao.com>2023-10-31 16:35:59 +0800
commitc872ccc5107327a968018bd5ae4b156730bc7757 (patch)
tree63150d3b3ab791419c935b762d6a796c18416704
parent650991d62c3a2c80ba27009d06839adbb038bf5e (diff)
downloadrust-c872ccc5107327a968018bd5ae4b156730bc7757.tar.gz
rust-c872ccc5107327a968018bd5ae4b156730bc7757.zip
delegate box error provide
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
-rw-r--r--library/alloc/src/boxed.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index 4a62013c685..25c63b425ce 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -2444,4 +2444,8 @@ impl<T: core::error::Error> core::error::Error for Box<T> {
     fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
         core::error::Error::source(&**self)
     }
+
+    fn provide<'b>(&'b self, request: &mut core::error::Request<'b>) {
+        core::error::Error::provide(&**self, request);
+    }
 }