]> git.lizzy.rs Git - rust.git/commit
Auto merge of #38932 - petrochenkov:privctor, r=jseyfried
authorbors <bors@rust-lang.org>
Thu, 2 Feb 2017 05:10:40 +0000 (05:10 +0000)
committerbors <bors@rust-lang.org>
Thu, 2 Feb 2017 05:10:40 +0000 (05:10 +0000)
commit1b6b20ac173eeb9ee50077a3e7614b37299cdbb7
treed5b97e4dc9ef2a5a9485b18d1aaa664320568bca
parent2a6f7e41fc89ff1070f9d57cff526d9989481e29
parentd38a8ad488047b8acdeed44bb7c67dc776324624
Auto merge of #38932 - petrochenkov:privctor, r=jseyfried

Privatize constructors of tuple structs with private fields

This PR implements the strictest version of such "privatization" - it just sets visibilities for struct constructors, this affects everything including imports.
```
visibility(struct_ctor) = min(visibility(struct), visibility(field_1), ..., visibility(field_N))
```
Needs crater run before proceeding.

Resolves https://github.com/rust-lang/rfcs/issues/902

r? @nikomatsakis