Skip to content

Commit

Permalink
Rollup merge of #117434 - BugenZhao:box-error-provide, r=cuviper
Browse files Browse the repository at this point in the history
delegate `<Box<E> as Error>::provide` to `<E as Error>::provide`

Fix #117432.
  • Loading branch information
matthiaskrgr authored Nov 3, 2023
2 parents 4911224 + c872ccc commit 958a6af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/alloc/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 958a6af

Please sign in to comment.