Skip to content

Commit 1b6f629

Browse files
committed
rustdoc-json: Remove doc FIXME for Import::id and explain
1 parent 3dfd268 commit 1b6f629

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/rustdoc-json-types/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,11 @@ pub struct Import {
561561
/// May be different from the last segment of `source` when renaming imports:
562562
/// `use source as name;`
563563
pub name: String,
564-
/// The ID of the item being imported.
565-
pub id: Option<Id>, // FIXME is this actually ever None?
564+
/// The ID of the item being imported. Will be `None` in case of re-exports of primitives:
565+
/// ```rust
566+
/// pub use i32 as my_i32;
567+
/// ```
568+
pub id: Option<Id>,
566569
/// Whether this import uses a glob: `use source::*;`
567570
pub glob: bool,
568571
}

0 commit comments

Comments
 (0)