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:
parent
ea83349c9f
commit
cfad7ad947
13 changed files with 338 additions and 27 deletions
|
@ -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>,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue