diff --git a/tokio/src/sync/mpsc/bounded.rs b/tokio/src/sync/mpsc/bounded.rs index 2810dad0d..c7ecd9fc6 100644 --- a/tokio/src/sync/mpsc/bounded.rs +++ b/tokio/src/sync/mpsc/bounded.rs @@ -184,8 +184,6 @@ impl Receiver { /// sync_code.join().unwrap() /// } /// ``` - #[cfg(feature = "rt-core")] - #[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))] pub fn blocking_recv(&mut self) -> Option { let mut enter_handle = crate::runtime::enter::enter(false); enter_handle.block_on(self.recv()).unwrap() @@ -456,8 +454,6 @@ impl Sender { /// sync_code.join().unwrap() /// } /// ``` - #[cfg(feature = "rt-core")] - #[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))] pub fn blocking_send(&mut self, value: T) -> Result<(), SendError> { let mut enter_handle = crate::runtime::enter::enter(false); enter_handle.block_on(self.send(value)).unwrap()