Skip to content

Commit

Permalink
Unrolled build for rust-lang#117434
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#117434 - BugenZhao:box-error-provide, r=cuviper

delegate `<Box<E> as Error>::provide` to `<E as Error>::provide`

Fix rust-lang#117432.
  • Loading branch information
rust-timer committed Nov 3, 2023
2 parents adda05f + c872ccc commit 6ee79df
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 6ee79df

Please sign in to comment.