Skip to content

Commit ded088f

Browse files
committed
mark channel errs as unstable
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent fce4cfa commit ded088f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sync/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,8 @@ impl<T> Drop for Channel<T> {
979979
}
980980

981981
/// An error returned from the `try_send` method.
982+
#[cfg(feature = "unstable")]
983+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
982984
pub enum TrySendError<T> {
983985
/// The channel is full but not disconnected.
984986
Full(T),
@@ -1008,6 +1010,8 @@ impl<T> Display for TrySendError<T> {
10081010
}
10091011

10101012
/// An error returned from the `try_recv` method.
1013+
#[cfg(feature = "unstable")]
1014+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
10111015
#[derive(Debug)]
10121016
pub enum TryRecvError {
10131017
/// The channel is empty but not disconnected.

0 commit comments

Comments
 (0)