about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-12-17 21:31:47 -0800
committerbors <bors@rust-lang.org>2013-12-17 21:31:47 -0800
commit09b8406638abca96fa6794b0263c1e7459234ecc (patch)
tree3063349e63d911fea64996a97ae8dac05fdb0781 /src/libstd
parentac137f6dbe51429de203ea2e900b8bac01f466cb (diff)
parenteabf11b9cb1f1bddeb1208e5564e592d10e4b680 (diff)
downloadrust-09b8406638abca96fa6794b0263c1e7459234ecc.tar.gz
rust-09b8406638abca96fa6794b0263c1e7459234ecc.zip
auto merge of #11019 : alexcrichton/rust/issue-10545, r=pcwalton
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.rs1
-rw-r--r--src/libstd/rt/mpmc_bounded_queue.rs2
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>>,
 }