Uh oh!
There was an error while loading. Please reload this page.
Implement From<RecvError> for TryRecvError and RecvTimeoutError - #45506
Conversation
rust-highfive
commented
Oct 24, 2017
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
carols10cents
commented
Oct 30, 2017
ping for review @aturon ! pinging you in chat too! |
ia0
commented
Oct 30, 2017
For completeness, I also added a conversion from SendError to TrySendError in the second and currently last commit. |
shepmaster
commented
Nov 3, 2017
Reassigning to new libs team member... r? @BurntSushi |
This seems reasonable to me. @rfcbot fcp merge |
shepmaster
commented
Nov 8, 2017
@BurntSushi It sounds like the fcp call-to-action needs to be on it's own line. I edited your comment, but no joy 😸. |
kennytm
commented
Nov 12, 2017
Hi @rust-lang/libs, it seems @rfcbot isn't responding, could anyone re-issue the FCP request? |
dtolnay
commented
Nov 12, 2017
@rfcbot fcp merge |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, 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
commented
Nov 21, 2017
🔔 This is now entering its final comment period, as per the review above. 🔔 |
alexcrichton
commented
Nov 27, 2017
@bors: r+ Thanks! |
bors
commented
Nov 27, 2017
📌 Commit 448215d has been approved by |
…chton Implement From<RecvError> for TryRecvError and RecvTimeoutError According to the documentation, it looks to me that `TryRecvError` and `RecvTimeoutError` are strict extensions of `RecvError`. As such, it makes sense to allow conversion from the latter type to the two former types without constraining future developments. This permits to write `input.recv()?` and `input.recv_timeout(timeout)?` in the same function for example.
Mark-Simulacrum
commented
Nov 28, 2017
@bors rollup |
Mark-Simulacrum
commented
Nov 28, 2017
@ia0 Since this will land into the 1.24 release train, would you be interested in changing the |
ia0
commented
Nov 28, 2017
Thanks for the information @Mark-Simulacrum. I created #46323 to fix the issue. |
Fix since for mpsc_error_conversions This is a followup of rust-lang#45506.
According to the documentation, it looks to me that
TryRecvErrorandRecvTimeoutErrorare strict extensions ofRecvError. As such, it makes sense to allow conversion from the latter type to the two former types without constraining future developments.This permits to write
input.recv()?andinput.recv_timeout(timeout)?in the same function for example.