File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -669,10 +669,25 @@ pub struct Import {
669
669
/// May be different from the last segment of `source` when renaming imports:
670
670
/// `use source as name;`
671
671
pub name : String ,
672
- /// The ID of the item being imported. Will be `None` in case of re-exports of primitives:
673
- /// ```rust
672
+ /// The ID of the item being imported. Will be `None` in case of re-exports of primitives or
673
+ /// if the reexported item is `#[doc(hidden)]` or inherits it from one of its parents.
674
+ ///
675
+ /// Example of reexported primitive type:
676
+ ///
677
+ /// ```
674
678
/// pub use i32 as my_i32;
675
679
/// ```
680
+ ///
681
+ /// Example of reexported item which inherits `doc(hidden)`:
682
+ ///
683
+ /// ```
684
+ /// #[doc(hidden)]
685
+ /// pub mod foo {
686
+ /// pub struct Bar;
687
+ /// }
688
+ ///
689
+ /// pub use foo::Bar;
690
+ /// ```
676
691
pub id : Option < Id > ,
677
692
/// Whether this import uses a glob: `use source::*;`
678
693
pub glob : bool ,
You can’t perform that action at this time.
0 commit comments