From d15d55973946f8f582ba69b1789b5b5d35da5b2d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 29 Aug 2014 14:33:08 -0700 Subject: Register new snapshots --- src/libsync/comm/mod.rs | 8 -------- src/libsync/comm/select.rs | 18 ------------------ 2 files changed, 26 deletions(-) (limited to 'src/libsync/comm') diff --git a/src/libsync/comm/mod.rs b/src/libsync/comm/mod.rs index 16f6eea6144..c8b86c47c90 100644 --- a/src/libsync/comm/mod.rs +++ b/src/libsync/comm/mod.rs @@ -386,18 +386,10 @@ pub struct Receiver { /// whenever `next` is called, waiting for a new message, and `None` will be /// returned when the corresponding channel has hung up. #[unstable] -#[cfg(not(stage0))] pub struct Messages<'a, T:'a> { rx: &'a Receiver } -/// Stage0 only -#[cfg(stage0)] -#[unstable] -pub struct Messages<'a, T> { - rx: &'a Receiver -} - /// The sending-half of Rust's asynchronous channel type. This half can only be /// owned by one task, but it can be cloned to send to other tasks. #[unstable] diff --git a/src/libsync/comm/select.rs b/src/libsync/comm/select.rs index dc9891dd1ee..669c1c958b8 100644 --- a/src/libsync/comm/select.rs +++ b/src/libsync/comm/select.rs @@ -76,7 +76,6 @@ pub struct Select { /// A handle to a receiver which is currently a member of a `Select` set of /// receivers. This handle is used to keep the receiver in the set as well as /// interact with the underlying receiver. -#[cfg(not(stage0))] pub struct Handle<'rx, T:'rx> { /// The ID of this handle, used to compare against the return value of /// `Select::wait()` @@ -92,23 +91,6 @@ pub struct Handle<'rx, T:'rx> { rx: &'rx Receiver, } -/// Stage0 only -#[cfg(stage0)] -pub struct Handle<'rx, T> { - /// The ID of this handle, used to compare against the return value of - /// `Select::wait()` - id: uint, - selector: &'rx Select, - next: *mut Handle<'static, ()>, - prev: *mut Handle<'static, ()>, - added: bool, - packet: &'rx Packet+'rx, - - // due to our fun transmutes, we be sure to place this at the end. (nothing - // previous relies on T) - rx: &'rx Receiver, -} - struct Packets { cur: *mut Handle<'static, ()> } #[doc(hidden)] -- cgit 1.4.1-3-g733a5