Skip to content

Commit 958a6af

Browse files
authored
Rollup merge of #117434 - BugenZhao:box-error-provide, r=cuviper
delegate `<Box<E> as Error>::provide` to `<E as Error>::provide` Fix #117432.
2 parents 4911224 + c872ccc commit 958a6af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: library/alloc/src/boxed.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2444,4 +2444,8 @@ impl<T: core::error::Error> core::error::Error for Box<T> {
24442444
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
24452445
core::error::Error::source(&**self)
24462446
}
2447+
2448+
fn provide<'b>(&'b self, request: &mut core::error::Request<'b>) {
2449+
core::error::Error::provide(&**self, request);
2450+
}
24472451
}

0 commit comments

Comments
 (0)