Implement From for FromBytesWithNulError#96104
Implement From for FromBytesWithNulError#96104SUPERCILEX wants to merge 3 commits intorust-lang:masterfrom
Conversation
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
r? @m-ou-se (rust-highfive has picked a reviewer for you, use r? to override) |
|
r? rust-lang/libs-api @rustbot label +T-libs-api -T-libs |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
37555d0 to
1052675
Compare
|
Trait impls can't be marked unstable; I posted a suggestion to address that. With that applied, r=me. |
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
|
Sounds good, done! |
|
@rfcbot merge |
|
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: Concerns:
Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
|
@rfcbot concern Which ErrorKind? I'm not sure if |
|
Also note that |
Ah, so are you suggesting that From shouldn't be implemented at all and you should instead always choose the ErrorKind and message? If so that makes sense and I'll close this PR. |
|
Independent of the question of which ErrorKind is correct, I think I would prefer not to add this impl. From what I've seen in serde, folks looking for |
|
Lol, that's literally what I'm trying to do. :) (Though in my case it's justified because I do have to return io::Error.) Anyway, I think this is enough feedback in the negative direction to close this PR. |
Needed for #93668 and generally useful.