Uh oh!
There was an error while loading. Please reload this page.
std: impl From<String> for Box<Error + Send> - #23979
Conversation
rust-highfive
commented
Apr 2, 2015
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
reem
commented
Apr 2, 2015
I've wanted this too, but if we're going to do this we should probably just take the clearer step conceptually of just implementing |
alexcrichton
commented
Apr 2, 2015
@reem hm I'm a little confused, this intentionally does not implement |
reem
commented
Apr 2, 2015
@alexcrichton this feels like a weird half-step to me and has some drawbacks. For instance, this doesn't expose the exact underlying type of the error and can't be used with traits that inherit from Error, e.g. rust-error. |
reem
commented
Apr 2, 2015
I'm saying that I think that implementing Error for String would be fine, and have more use cases than just this implementation. |
alexcrichton
commented
Apr 2, 2015
I personally feel that |
aturon
commented
Apr 3, 2015
Hm, I'm torn on the question of making FWIW, taking the step here does not preclude us from making |
alexcrichton
commented
Apr 3, 2015
lilyball
commented
Apr 3, 2015
I agree with @alexcrichton and @aturon as well, that a separate distinct type is appropriate and that we probably don't want to make |
No description provided.