diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-11-03 12:44:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-03 12:44:49 +0100 |
| commit | 958a6af147cbffbe5f283a2f46bca876b8dac22a (patch) | |
| tree | eae8aa51912e4c039d0c16e575f711183b5d0700 | |
| parent | 49112241e96aaca646b1aa8ef704e494f56feed4 (diff) | |
| parent | c872ccc5107327a968018bd5ae4b156730bc7757 (diff) | |
| download | rust-958a6af147cbffbe5f283a2f46bca876b8dac22a.tar.gz rust-958a6af147cbffbe5f283a2f46bca876b8dac22a.zip | |
Rollup merge of #117434 - BugenZhao:box-error-provide, r=cuviper
delegate `<Box<E> as Error>::provide` to `<E as Error>::provide` Fix #117432.
| -rw-r--r-- | library/alloc/src/boxed.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 4a62013c685..25c63b425ce 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -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); + } } |
