1
Fork 0

Rollup merge of #46323 - ia0:fix_mpsc_error_conv, r=kennytm

Fix since for mpsc_error_conversions

This is a followup of #45506.
This commit is contained in:
kennytm 2017-11-29 18:37:51 +08:00 committed by GitHub
commit 30f1853649

View file

@ -1686,7 +1686,7 @@ impl<T: Send> error::Error for TrySendError<T> {
}
}
#[stable(feature = "mpsc_error_conversions", since = "1.23.0")]
#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
impl<T> From<SendError<T>> for TrySendError<T> {
fn from(err: SendError<T>) -> TrySendError<T> {
match err {
@ -1747,7 +1747,7 @@ impl error::Error for TryRecvError {
}
}
#[stable(feature = "mpsc_error_conversions", since = "1.23.0")]
#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
impl From<RecvError> for TryRecvError {
fn from(err: RecvError) -> TryRecvError {
match err {
@ -1788,7 +1788,7 @@ impl error::Error for RecvTimeoutError {
}
}
#[stable(feature = "mpsc_error_conversions", since = "1.23.0")]
#[stable(feature = "mpsc_error_conversions", since = "1.24.0")]
impl From<RecvError> for RecvTimeoutError {
fn from(err: RecvError) -> RecvTimeoutError {
match err {