about summary refs log tree commit diff
path: root/src/libstd/comm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/comm.rs')
-rw-r--r--src/libstd/comm.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs
index e2d4646d670..4d87ebeac99 100644
--- a/src/libstd/comm.rs
+++ b/src/libstd/comm.rs
@@ -6,14 +6,11 @@ Higher level communication abstractions.
 
 // NB: transitionary, de-mode-ing.
 #[forbid(deprecated_mode)];
-#[forbid(deprecated_pattern)];
 
 use pipes::{Channel, Recv, Chan, Port, Selectable};
 
-export DuplexStream;
-
 /// An extension of `pipes::stream` that allows both sending and receiving.
-struct DuplexStream<T: Send, U: Send> {
+pub struct DuplexStream<T: Send, U: Send> {
     priv chan: Chan<T>,
     priv port: Port <U>,
 }
@@ -49,7 +46,7 @@ impl<T: Send, U: Send> DuplexStream<T, U> : Selectable {
 }
 
 /// Creates a bidirectional stream.
-fn DuplexStream<T: Send, U: Send>()
+pub fn DuplexStream<T: Send, U: Send>()
     -> (DuplexStream<T, U>, DuplexStream<U, T>)
 {
     let (c2, p1) = pipes::stream();