diff --git a/src/libextra/workcache.rs b/src/libextra/workcache.rs index 97c0f786071..2a2493688e6 100644 --- a/src/libextra/workcache.rs +++ b/src/libextra/workcache.rs @@ -9,6 +9,7 @@ // except according to those terms. #[allow(missing_doc)]; +#[allow(visible_private_types)]; use serialize::json; use serialize::json::ToJson; diff --git a/src/libgreen/lib.rs b/src/libgreen/lib.rs index 8758eb1179e..dca1c869ad2 100644 --- a/src/libgreen/lib.rs +++ b/src/libgreen/lib.rs @@ -173,6 +173,7 @@ // NB this does *not* include globs, please keep it that way. #[feature(macro_rules)]; +#[allow(visible_private_types)]; use std::mem::replace; use std::os; 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<()>), diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index 97718849e63..ff1a6bb7f7e 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -30,6 +30,8 @@ This API is completely unstable and subject to change. #[feature(macro_rules, globs, struct_variant, managed_boxes)]; #[feature(quote)]; +#[allow(visible_private_types)]; + extern crate extra; extern crate flate; extern crate arena; diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index d52389f15a3..919a7b208d4 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -99,7 +99,7 @@ pub enum ExternalLocation { } /// Different ways an implementor of a trait can be rendered. -enum Implementor { +pub enum Implementor { /// Paths are displayed specially by omitting the `impl XX for` cruft PathType(clean::Type), /// This is the generic representation of a trait implementor, used for diff --git a/src/librustuv/lib.rs b/src/librustuv/lib.rs index 9b327dc4ee4..890f44faabc 100644 --- a/src/librustuv/lib.rs +++ b/src/librustuv/lib.rs @@ -41,6 +41,7 @@ via `close` and `delete` methods. #[feature(macro_rules)]; #[deny(unused_result, unused_must_use)]; +#[allow(visible_private_types)]; #[cfg(test)] extern crate green; diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs index 07be753925f..ef641bbb665 100644 --- a/src/libstd/libc.rs +++ b/src/libstd/libc.rs @@ -1130,7 +1130,7 @@ pub mod types { Data4: [BYTE, ..8], } - struct WSAPROTOCOLCHAIN { + pub struct WSAPROTOCOLCHAIN { ChainLen: c_int, ChainEntries: [DWORD, ..MAX_PROTOCOL_CHAIN], } diff --git a/src/libstd/rt/local.rs b/src/libstd/rt/local.rs index 76a672b79ca..3cfa494d382 100644 --- a/src/libstd/rt/local.rs +++ b/src/libstd/rt/local.rs @@ -24,6 +24,7 @@ pub trait Local { unsafe fn try_unsafe_borrow() -> Option<*mut Self>; } +#[allow(visible_private_types)] impl Local> for Task { #[inline] fn put(value: ~Task) { unsafe { local_ptr::put(value) } } @@ -127,4 +128,3 @@ mod test { } } - diff --git a/src/libstd/rt/local_ptr.rs b/src/libstd/rt/local_ptr.rs index d4e57ab19b1..898004c665d 100644 --- a/src/libstd/rt/local_ptr.rs +++ b/src/libstd/rt/local_ptr.rs @@ -366,6 +366,7 @@ pub mod native { #[inline] #[cfg(not(test))] + #[allow(visible_private_types)] pub fn maybe_tls_key() -> Option { unsafe { // NB: This is a little racy because, while the key is diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs index b9459aed582..b194a9fe308 100644 --- a/src/libstd/rt/unwind.rs +++ b/src/libstd/rt/unwind.rs @@ -280,6 +280,7 @@ fn rust_exception_class() -> uw::_Unwind_Exception_Class { #[cfg(not(target_arch = "arm"), not(test))] #[doc(hidden)] +#[allow(visible_private_types)] pub mod eabi { use uw = super::libunwind; use libc::c_int; @@ -333,6 +334,7 @@ pub mod eabi { // ARM EHABI uses a slightly different personality routine signature, // but otherwise works the same. #[cfg(target_arch = "arm", not(test))] +#[allow(visible_private_types)] pub mod eabi { use uw = super::libunwind; use libc::c_int; diff --git a/src/libsyntax/abi.rs b/src/libsyntax/abi.rs index c01f3721fad..861cd8ae7d3 100644 --- a/src/libsyntax/abi.rs +++ b/src/libsyntax/abi.rs @@ -48,7 +48,7 @@ pub enum Architecture { static IntelBits: u32 = (1 << (X86 as uint)) | (1 << (X86_64 as uint)); static ArmBits: u32 = (1 << (Arm as uint)); -struct AbiData { +pub struct AbiData { abi: Abi, // Name of this ABI as we like it called. @@ -59,7 +59,7 @@ struct AbiData { abi_arch: AbiArchitecture } -enum AbiArchitecture { +pub enum AbiArchitecture { RustArch, // Not a real ABI (e.g., intrinsic) AllArch, // An ABI that specifies cross-platform defaults (e.g., "C") Archs(u32) // Multiple architectures (bitset) diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 42c9ab461aa..260375b5f81 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -31,6 +31,7 @@ This API is completely unstable and subject to change. #[feature(quote)]; #[deny(non_camel_case_types)]; +#[allow(visible_private_types)]; extern crate serialize; extern crate term;