Skip to content

Commit d53cfd2

Browse files
committed
core: Move Exclusive and SharedMutableState to the private mod
1 parent 2ac64d9 commit d53cfd2

File tree

9 files changed

+426
-427
lines changed

9 files changed

+426
-427
lines changed

src/libcore/pipes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ impl<T: Send> PortSet<T> : Recv<T> {
11071107
}
11081108

11091109
/// A channel that can be shared between many senders.
1110-
type SharedChan<T: Send> = unsafe::Exclusive<Chan<T>>;
1110+
type SharedChan<T: Send> = private::Exclusive<Chan<T>>;
11111111

11121112
impl<T: Send> SharedChan<T>: Channel<T> {
11131113
fn send(+x: T) {
@@ -1131,7 +1131,7 @@ impl<T: Send> SharedChan<T>: Channel<T> {
11311131

11321132
/// Converts a `chan` into a `shared_chan`.
11331133
fn SharedChan<T:Send>(+c: Chan<T>) -> SharedChan<T> {
1134-
unsafe::exclusive(move c)
1134+
private::exclusive(move c)
11351135
}
11361136

11371137
/// Receive a message from one of two endpoints.

0 commit comments

Comments
 (0)