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/rt | |
| 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/rt')
| -rw-r--r-- | src/libstd/rt/mpmc_bounded_queue.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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>>, } |
