diff options
| author | bors <bors@rust-lang.org> | 2014-09-23 04:15:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-23 04:15:37 +0000 |
| commit | 3941d3c3942a4360bcce4635bfdb33f8382d8f2e (patch) | |
| tree | b5c58d05d48b523da9c0abf058fb3139c60173d2 /src/libnative | |
| parent | 3f299ff19ddb3ee4752e6db120689189ab4c4231 (diff) | |
| parent | e9ad12c0cae5c43ada6641c7dc840a0fbe5010a2 (diff) | |
| download | rust-3941d3c3942a4360bcce4635bfdb33f8382d8f2e.tar.gz rust-3941d3c3942a4360bcce4635bfdb33f8382d8f2e.zip | |
auto merge of #17401 : pcwalton/rust/private-items-in-public-apis, r=alexcrichton
This breaks code like:
struct Foo {
...
}
pub fn make_foo() -> Foo {
...
}
Change this code to:
pub struct Foo { // note `pub`
...
}
pub fn make_foo() -> Foo {
...
}
The `visible_private_types` lint has been removed, since it is now an
error to attempt to expose a private type in a public API.
Closes #16463.
RFC #48.
[breaking-change]
r? @alexcrichton
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/timer_unix.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libnative/io/timer_unix.rs b/src/libnative/io/timer_unix.rs index 0a5de325c09..8c6fd83a76b 100644 --- a/src/libnative/io/timer_unix.rs +++ b/src/libnative/io/timer_unix.rs @@ -66,7 +66,7 @@ pub struct Timer { inner: Option<Box<Inner>>, } -struct Inner { +pub struct Inner { cb: Option<Box<rtio::Callback + Send>>, interval: u64, repeat: bool, @@ -74,7 +74,6 @@ struct Inner { id: uint, } -#[allow(visible_private_types)] pub enum Req { // Add a new timer to the helper thread. NewTimer(Box<Inner>), |
