1
Fork 0

auto merge of #13237 : alexcrichton/rust/private-tuple-structs, r=brson

This is the final commit need to implement [RFC #4](https://github.com/rust-lang/rfcs/blob/master/active/0004-private-fields.md), it makes all tuple struct fields private by default, overridable with the `pub` keyword.

I'll note one divergence from the original RFC which is outlined in the first commit.
This commit is contained in:
bors 2014-04-03 18:41:45 -07:00
commit c2e457686b
31 changed files with 326 additions and 79 deletions

View file

@ -58,7 +58,7 @@ pub struct Task {
}
pub struct GarbageCollector;
pub struct LocalStorage(Option<local_data::Map>);
pub struct LocalStorage(pub Option<local_data::Map>);
/// A handle to a blocked task. Usually this means having the ~Task pointer by
/// ownership, but if the task is killable, a killer can steal it at any time.