diff options
| author | binarycat <binarycat@envs.net> | 2025-08-26 13:41:33 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-10-02 15:27:40 -0500 |
| commit | c407d340de1717a88537725c899c153c6fdda051 (patch) | |
| tree | f4dacce2e88b1cd2461c1d7c8d39194f3ef735ac /src/librustdoc/html/render/mod.rs | |
| parent | 6710835ae739ca326441ff6c63d24fb123858300 (diff) | |
| download | rust-c407d340de1717a88537725c899c153c6fdda051.tar.gz rust-c407d340de1717a88537725c899c153c6fdda051.zip | |
if a trait item is shown in search results, hide the impl item
for example, if we're showing `Iterator::next`, we don't need to also show `Range::next` in the results. Co-authored-by: Michael Howell <michael@notriddle.com>
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 6d684449b6d..88184c9611f 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -134,6 +134,8 @@ pub(crate) struct IndexItem { pub(crate) desc: String, pub(crate) parent: Option<DefId>, pub(crate) parent_idx: Option<usize>, + pub(crate) trait_parent: Option<DefId>, + pub(crate) trait_parent_idx: Option<usize>, pub(crate) exact_module_path: Option<Vec<Symbol>>, pub(crate) impl_id: Option<DefId>, pub(crate) search_type: Option<IndexItemFunctionType>, |
