Skip to content

Commit d3898a6

Browse files
authored
Rollup merge of #61900 - s3bk:master, r=sfackler
implement Error::source for Box<T: Error> fixes #61899
2 parents f0c2bdf + 8951cb5 commit d3898a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ impl<T: Error> Error for Box<T> {
560560
fn cause(&self) -> Option<&dyn Error> {
561561
Error::cause(&**self)
562562
}
563+
564+
fn source(&self) -> Option<&(dyn Error + 'static)> {
565+
Error::source(&**self)
566+
}
563567
}
564568

565569
#[stable(feature = "fmt_error", since = "1.11.0")]

0 commit comments

Comments
 (0)