diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-05 18:41:55 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-05 18:41:55 -0800 |
| commit | 83c890b4542abf60f833df3da1924ed3ce559862 (patch) | |
| tree | 8279e3e96d461a35255f861a48026c4cce38528e /src/libstd/sync/mpsc | |
| parent | 59bbf56d4917d2776d8acd6ef1a44088486d71bd (diff) | |
| parent | 4236c52e34cd005af86ea9e5f199daeea9bb8fcb (diff) | |
rollup merge of #20565: alexcrichton/missing-stability
Conflicts: src/libstd/sync/mpsc/mod.rs
Diffstat (limited to 'src/libstd/sync/mpsc')
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 1ed68823a2c..bcfd61582a3 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -162,6 +162,8 @@ //! } //! ``` +#![stable] + // A description of how Rust's channel implementation works // // Channels are supposed to be the basic building block for all other @@ -589,8 +591,8 @@ impl<T: Send> Sender<T> { /// drop(rx); /// assert_eq!(tx.send_opt(1), Err(1)); /// ``` - #[unstable = "this function may be renamed to send() in the future"] - pub fn send_opt(&self, t: T) -> Result<(), T> { + #[stable] + pub fn send(&self, t: T) -> Result<(), SendError<T>> { let (new_inner, ret) = match *unsafe { self.inner() } { Flavor::Oneshot(ref p) => { unsafe { |
