]> git.lizzy.rs Git - rust.git/commit
auto merge of #13237 : alexcrichton/rust/private-tuple-structs, r=brson
authorbors <bors@rust-lang.org>
Fri, 4 Apr 2014 01:41:45 +0000 (18:41 -0700)
committerbors <bors@rust-lang.org>
Fri, 4 Apr 2014 01:41:45 +0000 (18:41 -0700)
commitc2e457686b77a7eec906549b73feba314667235b
tree7502e270074fa24186b7599ee78ec4116cd96261
parente7fe20722904cd2829a65f845ee7a1718cdf7292
parent922dcfdc6950f4d68d3334199de5572eef52b75a
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.
12 files changed:
src/librand/distributions/exponential.rs
src/librand/distributions/normal.rs
src/librand/lib.rs
src/librustc/metadata/csearch.rs
src/librustc/metadata/decoder.rs
src/librustc/middle/graph.rs
src/librustc/middle/ty.rs
src/librustc/middle/typeck/infer/coercion.rs
src/librustc/middle/typeck/infer/lub.rs
src/libstd/rt/task.rs
src/libsyntax/ast.rs
src/libsyntax/ast_map.rs