From 218eae06ab7c7858057cc6bbd28fb4e0db9f5264 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 27 Feb 2014 18:48:21 +1100 Subject: Publicise types/add #[allow(visible_private_types)] to a variety of places. There's a lot of these types in the compiler libraries, and a few of the older or private stdlib ones. Some types are obviously meant to be public, others not so much. --- src/libnative/io/timer_other.rs | 1 + src/libnative/io/timer_timerfd.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'src/libnative') diff --git a/src/libnative/io/timer_other.rs b/src/libnative/io/timer_other.rs index 0784b5ee048..9d700550863 100644 --- a/src/libnative/io/timer_other.rs +++ b/src/libnative/io/timer_other.rs @@ -71,6 +71,7 @@ struct Inner { id: uint, } +#[allow(visible_private_types)] pub enum Req { // Add a new timer to the helper thread. NewTimer(~Inner), diff --git a/src/libnative/io/timer_timerfd.rs b/src/libnative/io/timer_timerfd.rs index 7feeaa4768c..68277efc9b7 100644 --- a/src/libnative/io/timer_timerfd.rs +++ b/src/libnative/io/timer_timerfd.rs @@ -44,6 +44,7 @@ pub struct Timer { priv on_worker: bool, } +#[allow(visible_private_types)] pub enum Req { NewTimer(libc::c_int, Chan<()>, bool, imp::itimerspec), RemoveTimer(libc::c_int, Chan<()>), -- cgit 1.4.1-3-g733a5