Rollup merge of #117434 - BugenZhao:box-error-provide, r=cuviper
delegate `<Box<E> as Error>::provide` to `<E as Error>::provide` Fix #117432.
This commit is contained in:
commit
958a6af147
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue