diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-07 17:02:59 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-08 17:37:09 +0200 |
| commit | 29b75a6b34c966524b81e6137b2f868a1006722f (patch) | |
| tree | 08f888a019b9b3bd0b7742d8558cda6da29c7eb0 /src/librustdoc/clean/inline.rs | |
| parent | 2783fc43fd13a669f314742890acd64200ad0bbf (diff) | |
| download | rust-29b75a6b34c966524b81e6137b2f868a1006722f.tar.gz rust-29b75a6b34c966524b81e6137b2f868a1006722f.zip | |
Fix weird rustdoc output when single and glob reexport conflict on a name
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 96199cb972a..37b012d6d0d 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -152,8 +152,14 @@ pub(crate) fn try_inline( }; cx.inlined.insert(did.into()); - let mut item = - crate::clean::generate_item_with_correct_attrs(cx, kind, did, name, import_def_id, None); + let mut item = crate::clean::generate_item_with_correct_attrs( + cx, + kind, + did, + name, + import_def_id.as_slice(), + None, + ); // The visibility needs to reflect the one from the reexport and not from the "source" DefId. item.inner.inline_stmt_id = import_def_id; ret.push(item); |
