We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dfd268 commit 1b6f629Copy full SHA for 1b6f629
src/rustdoc-json-types/lib.rs
@@ -561,8 +561,11 @@ pub struct Import {
561
/// May be different from the last segment of `source` when renaming imports:
562
/// `use source as name;`
563
pub name: String,
564
- /// The ID of the item being imported.
565
- pub id: Option<Id>, // FIXME is this actually ever None?
+ /// The ID of the item being imported. Will be `None` in case of re-exports of primitives:
+ /// ```rust
566
+ /// pub use i32 as my_i32;
567
+ /// ```
568
+ pub id: Option<Id>,
569
/// Whether this import uses a glob: `use source::*;`
570
pub glob: bool,
571
}
0 commit comments