about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-11-28 03:16:41 +0800
committerGitHub <noreply@github.com>2017-11-28 03:16:41 +0800
commit2f012e4405c6d5bdd2855f3e1c416bd6e75808d8 (patch)
tree89558aff45e969e64427396ba07403a46c9a0763 /src/test/incremental/thinlto
parent58e1234cddd996378cb9df6bed537b9c08a6df73 (diff)
parent448215d226f2946c08d01ff230570a6e3b64b1de (diff)
downloadrust-2f012e4405c6d5bdd2855f3e1c416bd6e75808d8.tar.gz
rust-2f012e4405c6d5bdd2855f3e1c416bd6e75808d8.zip
Rollup merge of #45506 - ia0:mpsc_recv_error_from, r=alexcrichton
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.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions