diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-27 18:48:21 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-03-01 00:12:34 +1100 |
| commit | 218eae06ab7c7858057cc6bbd28fb4e0db9f5264 (patch) | |
| tree | d5aeeb2e58f3c30ba64f35c7d8a1f0eddb55ca8e /src/libstd/rt | |
| parent | fbdd3b2ef6196f236a8333b7435f1b31390c0194 (diff) | |
| download | rust-218eae06ab7c7858057cc6bbd28fb4e0db9f5264.tar.gz rust-218eae06ab7c7858057cc6bbd28fb4e0db9f5264.zip | |
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.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/local.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/local_ptr.rs | 1 | ||||
| -rw-r--r-- | src/libstd/rt/unwind.rs | 2 |
3 files changed, 4 insertions, 1 deletions
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<Borrowed> { unsafe fn try_unsafe_borrow() -> Option<*mut Self>; } +#[allow(visible_private_types)] impl Local<local_ptr::Borrowed<Task>> 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<tls::Key> { 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; |
