about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-28 06:06:31 -0800
committerbors <bors@rust-lang.org>2014-02-28 06:06:31 -0800
commit2e51e8d926625187226e2e37381b9ea671e18a48 (patch)
tree265ef6e286dda8ab1499b779f250c9423b0bc2e7 /src/libnative
parentb99a8ffad4b2f791c2a32e036dffb160a00bdc69 (diff)
parent218eae06ab7c7858057cc6bbd28fb4e0db9f5264 (diff)
downloadrust-2e51e8d926625187226e2e37381b9ea671e18a48.tar.gz
rust-2e51e8d926625187226e2e37381b9ea671e18a48.zip
auto merge of #12595 : huonw/rust/pub-vis-typ, r=alexcrichton
These are types that are in exported type signatures, but are not
exported themselves, e.g.

    struct Foo { ... }

    pub fn bar() -> Foo { ... }

will warn about the Foo.

Such types are not listed in documentation, and cannot be named outside
the crate in which they are declared, which is very user-unfriendly.

cc #10573.
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/timer_other.rs1
-rw-r--r--src/libnative/io/timer_timerfd.rs1
2 files changed, 2 insertions, 0 deletions
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<()>),