Hello, this is a ping from wg-triage, what's the next steps on this PR?
That PR is: https://github.com/rust-lang/rust/pull/75180
impl<‘a, T: ?Sized + Error> Error for &’a T
There’s a crater run in the PR that shows a handful of error crates regressing
I think the next steps are deciding whether it’s a change we want, to fill one of the gaps that makes
impl Error a mostly useless generic bound, and whether we want to do it this way our through some other API
I was hoping to bring it up in one of the group’s meetings 😄
If I understand the PR correctly, SNAFU works around this via https://docs.rs/snafu/0.6.8/snafu/trait.AsErrorSource.html
Ah that’s interesting 🤔 Is that so you can have generic
impl AsErrorSources that covers both
impl Error and
That must be one of the regressions too
SNAFU did not appear in the regression list, AFAICT.
@Ashley Mannix im betting this has already been tried and theres a good reason this isnt possible but do you know if it would be possible to use AsRef here?
oh wait, no people can probably implement
AsRef<dyn Error> for their local types already so that wont work at all
Last updated: Jan 29 2022 at 10:01 UTC