diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-12-16 23:32:37 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-12-17 09:38:57 -0800 |
| commit | eabf11b9cb1f1bddeb1208e5564e592d10e4b680 (patch) | |
| tree | 10144fd8b85d4c016034a43caa513c260f4d6687 /src/libstd | |
| parent | d5798b3902c4af50bf0f24e1c4bbf5e4a4dcc6ca (diff) | |
| download | rust-eabf11b9cb1f1bddeb1208e5564e592d10e4b680.tar.gz rust-eabf11b9cb1f1bddeb1208e5564e592d10e4b680.zip | |
Don't allow impls to force public types
This code in resolve accidentally forced all types with an impl to become public. This fixes it by default inheriting the privacy of what was previously there and then becoming `true` if nothing else exits. Closes #10545
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/hash.rs | 1 | ||||
| -rw-r--r-- | src/libstd/rt/mpmc_bounded_queue.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/hash.rs b/src/libstd/hash.rs index a135d66141a..4782bb5dd13 100644 --- a/src/libstd/hash.rs +++ b/src/libstd/hash.rs @@ -303,6 +303,7 @@ impl Streaming for SipState { mod tests { use super::*; use prelude::*; + use super::SipState; // Hash just the bytes of the slice, without length prefix struct Bytes<'a>(&'a [u8]); diff --git a/src/libstd/rt/mpmc_bounded_queue.rs b/src/libstd/rt/mpmc_bounded_queue.rs index 1e04e5eb78d..25a3ba8ab48 100644 --- a/src/libstd/rt/mpmc_bounded_queue.rs +++ b/src/libstd/rt/mpmc_bounded_queue.rs @@ -51,7 +51,7 @@ struct State<T> { pad3: [u8, ..64], } -struct Queue<T> { +pub struct Queue<T> { priv state: UnsafeArc<State<T>>, } |
