1
Fork 0

Perform doc-reachability check for inlined impls

This changes the current rule that impls within `doc(hidden)` modules
aren't inlined, to only inlining impls where the implemented
trait and type are reachable in documentation.
This commit is contained in:
mitaa 2016-04-15 16:34:48 +02:00
parent ea83349c9f
commit cfad7ad947
13 changed files with 338 additions and 27 deletions

View file

@ -253,6 +253,9 @@ pub struct Cache {
parent_is_trait_impl: bool,
search_index: Vec<IndexItem>,
stripped_mod: bool,
// Note that external items for which `doc(hidden)` applies to are shown as
// non-reachable while local items aren't. This is because we're reusing
// the access levels from crateanalysis.
access_levels: Arc<AccessLevels<DefId>>,
deref_trait_did: Option<DefId>,