-
Notifications
You must be signed in to change notification settings - Fork 138
Any plans for clonable errors? #148
Comments
First, nothing stops you from implementing However, the |
If the issue is "we can't make breaking changes to |
I think coherence won't let us provide that impl. That would solve the most annoying problems but not all of them, e.g. if Currently grepping the source of all reverse dependencies to find out if anyone actually uses |
Actually, nevermind. This would also invalidate In theory, Fortunately, there are several work arounds:
|
Thanks @withoutboats for the great explanation! The |
Unfortunately the generic `failure::Error` type is not `Clone` because of its internals: rust-lang-deprecated/failure#148 The fix is to either switch to `Rc<Error>` or `Arc<Error>`, or to use a custom `Fail` type. In this case using a custom `Fail` might be best but this commit just stubs out references to e.clone() until then.
Related: 121, 134 and 24135.
The text was updated successfully, but these errors were encountered: