From 1d51cfa1e83ce18d05721683f2e60d9c2a9ae794 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 28 Sep 2012 16:26:59 -0700 Subject: [PATCH] Finish de-exporting send_map, future, pipes. Part of #3583. --- src/libcore/core.rc | 3 --- src/libcore/pipes.rs | 11 ++++------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/libcore/core.rc b/src/libcore/core.rc index 36fb013bcdf9f..11eaff3dd54fb 100644 --- a/src/libcore/core.rc +++ b/src/libcore/core.rc @@ -234,7 +234,6 @@ mod dlist_iter { #[legacy_exports] mod inst; } -#[legacy_exports] mod send_map; // Concurrency @@ -252,9 +251,7 @@ mod task { #[legacy_exports] mod rt; } -#[legacy_exports] mod future; -#[legacy_exports] mod pipes; // Runtime and language-primitive support diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs index 7a4d15ac4fe8d..bb82afa29450e 100644 --- a/src/libcore/pipes.rs +++ b/src/libcore/pipes.rs @@ -112,7 +112,7 @@ pub struct BufferHeader { // thing along. } -fn BufferHeader() -> BufferHeader{ +pub fn BufferHeader() -> BufferHeader{ BufferHeader { ref_count: 0 } @@ -239,7 +239,6 @@ pub fn entangle_buffer( #[abi = "rust-intrinsic"] #[doc(hidden)] extern mod rusti { - #[legacy_exports]; fn atomic_xchg(dst: &mut int, +src: int) -> int; fn atomic_xchg_acq(dst: &mut int, +src: int) -> int; fn atomic_xchg_rel(dst: &mut int, +src: int) -> int; @@ -280,7 +279,6 @@ type rust_task = libc::c_void; #[doc(hidden)] extern mod rustrt { - #[legacy_exports]; #[rust_stack] fn rust_get_task() -> *rust_task; #[rust_stack] @@ -1197,12 +1195,11 @@ pub fn try_send_one(+chan: ChanOne, +data: T) oneshot::client::try_send(move chan, move data).is_some() } -mod rt { - #[legacy_exports]; +pub mod rt { // These are used to hide the option constructors from the // compiler because their names are changing - fn make_some(+val: T) -> Option { Some(move val) } - fn make_none() -> Option { None } + pub fn make_some(+val: T) -> Option { Some(move val) } + pub fn make_none() -> Option { None } } #[cfg(test)]