diff options
| author | binarycat <binarycat@envs.net> | 2025-05-27 12:42:25 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-06-10 12:56:58 -0500 |
| commit | 1140e90074b0cbcfdea8535e4b51877e2838227e (patch) | |
| tree | f3f3b850ab68799f03620f47e021b9e4163bb398 /src/librustdoc/formats | |
| parent | ccf3198de316b488ee17441935182e9d5292b4d3 (diff) | |
| download | rust-1140e90074b0cbcfdea8535e4b51877e2838227e.tar.gz rust-1140e90074b0cbcfdea8535e4b51877e2838227e.zip | |
rustdoc search: prefer stable items in search results
fixes https://github.com/rust-lang/rust/issues/138067
Diffstat (limited to 'src/librustdoc/formats')
| -rw-r--r-- | src/librustdoc/formats/cache.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/formats/cache.rs b/src/librustdoc/formats/cache.rs index 4989bd718c9..c3251ca7806 100644 --- a/src/librustdoc/formats/cache.rs +++ b/src/librustdoc/formats/cache.rs @@ -586,6 +586,7 @@ fn add_item_to_search_index(tcx: TyCtxt<'_>, cache: &mut Cache, item: &clean::It search_type, aliases, deprecation, + stability: item.stability(tcx), }; cache.search_index.push(index_item); } |
