diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-09 12:09:32 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-10 18:30:37 +0100 |
| commit | 36c9b49c145af1a98948046dcc7060e2e552881c (patch) | |
| tree | 9b7299923016e93f45897864bb02913acbead031 /src/librustdoc/clean/inline.rs | |
| parent | c54c8cbac882e149e04a9e1f2d146fd548ae30ae (diff) | |
| download | rust-36c9b49c145af1a98948046dcc7060e2e552881c.tar.gz rust-36c9b49c145af1a98948046dcc7060e2e552881c.zip | |
Remove unneeded ItemId::Primitive variant
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index d1601272af7..aad24b4a074 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -600,7 +600,9 @@ fn build_module_items( items.push(clean::Item { name: None, attrs: Box::new(clean::Attributes::default()), - item_id: ItemId::Primitive(prim_ty, did.krate), + // We can use the item's `DefId` directly since the only information ever used + // from it is `DefId.krate`. + item_id: ItemId::DefId(did), kind: Box::new(clean::ImportItem(clean::Import::new_simple( item.ident.name, clean::ImportSource { |
