Skip to content

Commit

Permalink
Rollup merge of rust-lang#61900 - s3bk:master, r=sfackler
Browse files Browse the repository at this point in the history
implement Error::source for Box<T: Error>

fixes rust-lang#61899
  • Loading branch information
Centril committed Jun 20, 2019
2 parents f0c2bdf + 8951cb5 commit d3898a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ impl<T: Error> Error for Box<T> {
fn cause(&self) -> Option<&dyn Error> {
Error::cause(&**self)
}

fn source(&self) -> Option<&(dyn Error + 'static)> {
Error::source(&**self)
}
}

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

0 comments on commit d3898a6

Please sign in to comment.