File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2053,7 +2053,8 @@ fn clean_use_statement(
2053
2053
// forcefully don't inline if this is not public or if the
2054
2054
// #[doc(no_inline)] attribute is present.
2055
2055
// Don't inline doc(hidden) imports so they can be stripped at a later stage.
2056
- let mut denied = ( !import. vis . node . is_pub ( ) && !cx. render_options . document_private )
2056
+ let mut denied = !( import. vis . node . is_pub ( )
2057
+ || ( cx. render_options . document_private && import. vis . node . is_pub_restricted ( ) ) )
2057
2058
|| pub_underscore
2058
2059
|| attrs. iter ( ) . any ( |a| {
2059
2060
a. has_name ( sym:: doc)
Original file line number Diff line number Diff line change @@ -46,3 +46,8 @@ pub use reexports::Union;
46
46
pub ( crate ) use reexports:: UnionCrate ;
47
47
// @has 'foo/union.UnionSelf.html' '//*[@class="docblock type-decl"]' 'pub(crate) union UnionSelf {'
48
48
pub ( self ) use reexports:: UnionSelf ;
49
+
50
+ pub mod foo {
51
+ // @!has 'foo/foo/union.Union.html'
52
+ use crate :: reexports:: Union ;
53
+ }
You can’t perform that action at this time.
0 commit comments