Skip to content

Commit 780e09a

Browse files
committed
1 parent 94ce4c4 commit 780e09a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

COMMIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a856e57f6cc8ba8bb83c5abadce338f589df6b10
1+
0dc39c7bd9795927b903c8c24e89a00788ce3e33

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustdoc-types"
3-
version = "0.13.0"
3+
version = "0.13.1"
44
authors = ["Nixon Enraght-Moony <[email protected]>", "The Rust Project Developers"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,11 @@ pub struct Import {
591591
/// May be different from the last segment of `source` when renaming imports:
592592
/// `use source as name;`
593593
pub name: String,
594-
/// The ID of the item being imported.
595-
pub id: Option<Id>, // FIXME is this actually ever None?
594+
/// The ID of the item being imported. Will be `None` in case of re-exports of primitives:
595+
/// ```rust
596+
/// pub use i32 as my_i32;
597+
/// ```
598+
pub id: Option<Id>,
596599
/// Whether this import uses a glob: `use source::*;`
597600
pub glob: bool,
598601
}

0 commit comments

Comments
 (0)