From c872ccc5107327a968018bd5ae4b156730bc7757 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Tue, 31 Oct 2023 16:35:59 +0800 Subject: [PATCH] delegate box error provide Signed-off-by: Bugen Zhao --- library/alloc/src/boxed.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 4a62013c685f8..25c63b425ce59 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -2444,4 +2444,8 @@ impl core::error::Error for Box { 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); + } }