diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-04-07 17:17:09 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-04-07 20:22:41 +0530 |
| commit | 76e2349c4417788e03f877fe18d13b521b455a4b (patch) | |
| tree | e59d427997528a655e7ef6adcabf92993139e87a /src/rustllvm/RustWrapper.cpp | |
| parent | 444a118a8932c99b902548cb7ca8c249222c053a (diff) | |
| parent | dcd4621b4df9c1962ea55653e3f01cdf8b6a3e12 (diff) | |
| download | rust-76e2349c4417788e03f877fe18d13b521b455a4b.tar.gz rust-76e2349c4417788e03f877fe18d13b521b455a4b.zip | |
Rollup merge of #32674 - jseyfried:1422_groundwork, r=nikomatsakis
Lay groundwork for RFC 1422 and improve `PrivateItemsInPublicInterfacesVisitor` This PR lays groundwork for RFC 1422 (cc #32409) and improves `PrivateItemsInPublicInterfacesVisitor`. More specifically, it - Refactors away `hir::Visibility::inherit_from`, the semantics of which are obsolete. - Makes `hir::Visibility` non-`Copy` so that we will be able to add new variants to represent `pub(restricted)` (for example, `Visibility::Restricted(Path)`). - Adds a new `Copy` type `ty::Visibility` that represents a visibility value, i.e. a characterization of where an item is accessible. This is able to represent `pub(restricted)` visibilities. - Improves `PrivateItemsInPublicInterfacesVisitor` so that it checks for items in an interface that are less visible than the interface. This fixes #30079 but doesn't change any other behavior. r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
