about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-04-07 17:17:09 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-04-07 20:22:41 +0530
commit76e2349c4417788e03f877fe18d13b521b455a4b (patch)
treee59d427997528a655e7ef6adcabf92993139e87a /src/rustllvm/RustWrapper.cpp
parent444a118a8932c99b902548cb7ca8c249222c053a (diff)
parentdcd4621b4df9c1962ea55653e3f01cdf8b6a3e12 (diff)
downloadrust-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